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
v0.5.5

0.5.5 - 2022-02-23

Changed

  • Updated torchlight-laravel version constraint

New Contributors

Full Changelog: https://github.com/torchlight-api/torchlight-commonmark-php/compare/v0.5.4...v0.5.5

v0.5.4

0.5.4 - 2022-02-01

Added

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

Full Changelog: https://github.com/torchlight-api/torchlight-commonmark-php/compare/v0.5.3...v0.5.4

v0.5.3

0.5.3 - 2022-01-19

Added

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

Full Changelog: https://github.com/torchlight-api/torchlight-commonmark-php/compare/v0.5.2...v0.5.3

v0.5.2

0.5.2 - 2021-09-26

Fixed

  • Indented code works correctly now.
v0.5.1

0.5.1 - 2021-09-06

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.
v0.5.0

0.5.0 - 2021-09-06

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
v0.4.1

0.4.1 - 2021-08-02

Changed

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

0.4.0 - 2021-07-31

Changed

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

0.3.3 - 2021-07-31

Changed

  • Changed registerCustomBlockRenderer to useCustomBlockRenderer.
v0.3.2

0.3.2 - 2021-07-31

Added

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

0.3.1 - 2021-06-17

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.
```
v0.3.0

See changelog

v0.2.0

See changelog.

v0.1.0

Initial release 🎉

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