Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Torchlight Commonmark Laravel Package

torchlight/torchlight-commonmark

Laravel extension for league/commonmark that highlights Markdown code fences with Torchlight. Works with CommonMark v1 and v2, integrates with GrahamCampbell/Laravel-Markdown or manual environments, and uses the Torchlight Laravel client for fast, JS-free highlighting.

View on GitHub
Deep Wiki
Context7
0.5.5

Changed

  • Updated torchlight-laravel version constraint
0.5.4

Added

  • Ability to set multiple themes for e.g. dark mode
0.5.3

Added

  • Attributes returned from the API will be added to the code block. (The API now returns data-lang as an attribute.)
0.5.2

Fixed

  • Indented code works correctly now.
0.5.1

Changed

  • When loading content from files using the <<< path/to/file.php convention, you can now wrap it in a comment e.g. // <<<path/to.file.php.
0.5.0

Changed

  • Deprecated \Torchlight\Commonmark\TorchlightExtension in favor of the versioned \Torchlight\Commonmark\V1\TorchlightExtension and \Torchlight\Commonmark\V2\TorchlightExtension extensions

Added

  • You can now load files from markdown by using the <<< path/to/file.php convention.
  • Added support for CommonMark V2
0.4.1

Changed

  • Use a render function instead of the deprecated wrapped response from the API.
0.4.0

Changed

  • Bump torchlight/torchlight-laravel dependency.
  • Use Torchlight::highlight instead of (new Client)->highlight
0.3.3

Changed

  • Changed registerCustomBlockRenderer to useCustomBlockRenderer.
0.3.2

Added

  • Ability to register a custom block renderer. Needed for Ibis client.
0.3.1

Added

  • Ability to set a theme per block by using theme:name syntax, e.g.:
```php theme:dark-plus
// Use dark-plus for this block.
```
0.3.0
  • Bump torchlight/torchlight-laravel dependency.
0.2.0
  • Bump torchlight/torchlight-laravel dependency.
  • Changed package name from torchlight/commonmark to torchlight/torchlight-commonmark
0.1.0

First.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4