Laika v0.13.0 Release Notes
Release Date: 2020-01-26 // about 4 years ago-
New Integrated Syntax Highlighting
- 📜 Introduce syntax highlighting based on Laika's own parsers
- Resulting AST nodes for code spans are part of the document AST and
can be processed or transformed like all other nodes - Works with any renderer, including PDF
- Initially supported are Scala, Java, Python, JavaScript, TypeScript,
HTML, CSS, XML, JSON, HOCON - Convenient base parsers for common syntax like string and number literals
or identifiers to facilitate development of new syntax highlighters
- Resulting AST nodes for code spans are part of the document AST and
- 📜 HOCON parser: add support for
include
statements, this final feature addition
👉 makes Laika's HOCON support fully spec-compliant - 🆕 New transformation hooks in the
laika-io
module for parallel transformers:
mapDocuments(Document => Document)
,evalMapDocuments(Document => F[Document])
and the corresponsingmapTree
andevalMapTree
- 📜 Transformer introspection: introduce
describe
method for parsers, renderers
🔌 and transformers andlaikaDescribe
setting in the sbt plugin that provides
formatted information about the transformer setup and installed extensions - 🔌 sbt plugin: improved accuracy for caching logic for EPUB and PDF output
that still works when the artifact name or version changes - ⬆️ Upgrade dependency on cats-core to 2.1.0
- 📜 Introduce syntax highlighting based on Laika's own parsers