- Updated torchlight-laravel version constraint
- Ability to set multiple themes for e.g. dark mode
- Attributes returned from the API will be added to the code block. (The API now returns
data-lang
as an attribute.)
- Indented code works correctly now.
- 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
.
- Deprecated
\Torchlight\Commonmark\TorchlightExtension
in favor of the versioned\Torchlight\Commonmark\V1\TorchlightExtension
and\Torchlight\Commonmark\V2\TorchlightExtension
extensions
- You can now load files from markdown by using the
<<< path/to/file.php
convention. - Added support for CommonMark V2
- Use a render function instead of the deprecated
wrapped
response from the API.
- Bump
torchlight/torchlight-laravel
dependency. - Use
Torchlight::highlight
instead of(new Client)->highlight
- Changed
registerCustomBlockRenderer
touseCustomBlockRenderer
.
- Ability to register a custom block renderer. Needed for Ibis client.
- Ability to set a theme per block by using
theme:name
syntax, e.g.:
```php theme:dark-plus
// Use dark-plus for this block.
```
- Bump
torchlight/torchlight-laravel
dependency.
- Bump
torchlight/torchlight-laravel
dependency. - Changed package name from
torchlight/commonmark
totorchlight/torchlight-commonmark
First.