kirby-highlighter

🌐 Server-side syntax highlighting for the code block & KirbyText

MIT License

Downloads
1.1K
Stars
20
Committers
6

Bot releases are hidden (Show)

kirby-highlighter - 2.1.0

Published by johannschopplich over 2 years ago

Notable Changes

  • chore: support PHP 8.0+

Contributors

@FabienYt

kirby-highlighter - 2.0.2

Published by johannschopplich almost 3 years ago

Notable Changes

  • chore: add version number to composer.json for Kirby 3.6
kirby-highlighter - 2.0.1

Published by johannschopplich about 3 years ago

Notable Changes

  • fix: highlighting with unknown language inside code block
kirby-highlighter - 2.0.0

Published by johannschopplich about 3 years ago

New Feature: Code Block Support

This plugin overwrites Kirby's internal code block. Thus, you won't have to change a thing.

Use the code block just like before, the output will be highlighted automatically:

fields:
  example:
    label: Paste code here
    type: blocks
    fieldsets:
      - code
kirby-highlighter - 1.4.1

Published by johannschopplich about 3 years ago

Notable Changes

  • test: fix failing tests
  • chore: upgrade dependencies
kirby-highlighter - 1.4.0

Published by johannschopplich over 3 years ago

Notable Changes

Thanks to @rawb1 for implementing both features.

kirby-highlighter - 1.3.1

Published by johannschopplich almost 4 years ago

This release upgrades its dependencies and cleans up some code lines.

kirby-highlighter - 1.3.0

Published by johannschopplich about 4 years ago

Breaking Changes

  • Prefix for options has been changed from kirby-extended.highlight to kirby-extended.highlighter (notie the er at the end)

Fixes

  • Options are now fully overwritable in your site-wide config.php
kirby-highlighter - 1.2.3

Published by johannschopplich about 4 years ago

This release just upgrades its dependencies and improves the code style a bit.

kirby-highlighter - 1.2.2

Published by johannschopplich about 4 years ago

Notable Changes

  • Prevent content from being rendered through PHP's DOMDocument if no pre elements have been found
kirby-highlighter - 1.2.1

Published by johannschopplich about 4 years ago

This release prettifies some code.

kirby-highlighter - 1.2.0 – Multi-Block Functionality

Published by johannschopplich about 4 years ago

Notable Changes

kirby-highlighter - 1.1.0 – Fix Encoding Issues

Published by johannschopplich about 4 years ago

Notable Changes

  • New vanilla HTML5DOMDocument class as a sane wrapper around PHP's complicated and somewhat broken DOMDocument class.
  • The change above fixes miscellaneous enconding and XML parser related issues occuring in Kirby instances. E.g.:
    • DOMDocument::loadHTML(): Tag figure invalid in Entity
  • Drop unused composer dependency leftovers from the initial release.
kirby-highlighter - 1.0.0

Published by johannschopplich about 4 years ago

This is the initial release for this package.