Skip to content

1.2.0

Compare
Choose a tag to compare
@westonruter westonruter released this 10 May 23:37
· 5 commits to master since this release
ecddb40

The plugin readme has been updated to include the latest features and behavior. Screenshot of new options for specifying highlighted lines, showing line numbers, and controlling line wrapping:

screenshot-1

For advanced usage, please see the new plugin wiki.

Huge thanks to @allejo for co-maintaining this project, tackling some of the biggest enhancements in this release in addition to maintaining the underlying highlight.php library that the plugin fundamentally depends on!

Changelog

  • ✨ Add support for highlighting specific lines. #20, #12
  • ✨ Use mark element to indicate highlighted lines, print styles immediately before block, ensure formatting when styles omitted, and add Wrap Lines option. #80, #78, #79
  • ✨ Add syntax_highlighting_code_block_auto_detect_languages filter, allowing you to restrict which languages are used for auto-detection. This can ensure the right language is used when the source is ambiguous. #36, #34
  • ✨ Define attribute schema in PHP with registered block type. #83
  • 🖍️ Remove padding from Code blocks. #82
  • 🖍️ Omit styles in RSS feeds and REST API responses. #93, #9.
  • 🐛 Register styles at wp_default_styles not wp_enqueue_scripts, ensuring that styles will be available in other contexts like AMP Reader mode. #35
  • 🐛 Fix compatibility with lightBlockWrapper for Code block in Gutenberg 7.9+. #73, #72
  • 🐛 Fix loading script dependencies list. #74
  • 🐛 Fix injection of classes in cached block output. #77
  • 🐛 Ensure proper text domain is passed to translation functions. #81
  • 🐛 Improve attribute naming. #92, #84, #95
  • 🐛 Improve robustness of injecting styles to prevent inadvertent display. #97