- 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-langas an attribute.)
- Indented code works correctly now.
- When loading content from files using the
<<< path/to/file.phpconvention, you can now wrap it in a comment e.g.// <<<path/to.file.php.
- Deprecated
\Torchlight\Commonmark\TorchlightExtensionin favor of the versioned\Torchlight\Commonmark\V1\TorchlightExtensionand\Torchlight\Commonmark\V2\TorchlightExtensionextensions
- You can now load files from markdown by using the
<<< path/to/file.phpconvention. - Added support for CommonMark V2
- Use a render function instead of the deprecated
wrappedresponse from the API.
- Bump
torchlight/torchlight-laraveldependency. - Use
Torchlight::highlightinstead of(new Client)->highlight
- Changed
registerCustomBlockRenderertouseCustomBlockRenderer.
- Ability to register a custom block renderer. Needed for Ibis client.
- Ability to set a theme per block by using
theme:namesyntax, e.g.:
```php theme:dark-plus
// Use dark-plus for this block.
```
- Bump
torchlight/torchlight-laraveldependency.
- Bump
torchlight/torchlight-laraveldependency. - Changed package name from
torchlight/commonmarktotorchlight/torchlight-commonmark
First.