v0.58.0
This release fixes the following issues:
- Fixed a panic in the Scriggo command when trying to import or extend a non-existent file.
- Fixed rendering issues when a non-Markdown file is rendered inside a Markdown context.
Additionally, files with the ".mdx" extension are now treated as Markdown files by default.
We’ve added the MarkdownConverter method to native.Env. A function or method, whether passed globally or imported into a template, can now use this method to retrieve the Markdown converter passed when building the template.
Finally, the scriggo serve command now enables support for footnotes in Markdown parsing.
Changes
- cmd/scriggo: fix panic when importing or extending a non-existent file
- cmd/scriggo: add extension.Footnote to goldmark (breaking change)
- internal/runtime: refactor macro calls and renderer implementation
- internal/compiler: add .mdx as default Markdown file extension (breaking change)
- native,internal/runtime: introduce the Env.MarkdownConverter method (breaking change)