Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
58 stars 5 forks source link

[Shock] - Expose all Markdown-to-HTML render options at plugin level. Also notify user if a page has unknown renderer. #134

Closed matthew-carroll closed 3 weeks ago

matthew-carroll commented 3 weeks ago

[Shock] - Expose all Markdown-to-HTML render options at plugin level. Also notify user if a page has unknown renderer.

The impetus for the Markdown rendering options is that I was trying to get a page to render a combination of Markdown and Jinja, but the Markdown renderer kept escaping characters in the Jinja syntax. The setting for escaping characters is available at the point of requesting a Markdown-to-HTML conversion. All of those options are now elevated to the plugin level.

I also accidentally used the wrong syntax for specifying multiple renderers. I couldn't figure out why the page wasn't rendering. To help with that in the future, I added a warning when a page is loaded but fails to find at least one page renderer.