Skip to content

1.5.0

Choose a tag to compare

@dereuromark dereuromark released this 04 Mar 17:52
· 96 commits to main since this release

What's New

Torchlight Engine Integration

This release replaces the custom code block styling with Torchlight Engine (built on Phiki), providing powerful syntax highlighting and code annotation features.

Features

  • Inline code annotations - Add annotations directly in your code:

    • // [tl! highlight] - Highlight a line
    • // [tl! focus] - Focus mode (dim other lines)
    • // [tl! ++] / // [tl! --] - Diff highlighting
    • Range annotations: // [tl! highlight:start] ... // [tl! highlight:end]
  • Code Annotations panel - Quick-insert buttons in the block editor sidebar when editing Djot blocks

  • Line numbers - Add # after language: ``` php #

  • Custom start line - Use inline option: // torchlight! {"lineNumbersStart": 42}

Changes

  • Simplified CSS (100+ lines → 17 lines)
  • Simplified JS (229 lines → 73 lines)
  • Code styling now handled by Torchlight

Dependencies

  • Added torchlight/engine: ^0.1

Examples

examples

Full Changelog: 1.4.3...1.5.0