-
-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Aiming to embrace Djot and then fully ditch the current FFI required to parse and integrate markdown:
Replace the markdown parser with a Djot parsing implementation based on Jot, this would strip Cynthia Mini from markdown support alltogether, and so is not directly what we want.
However, we want the client to only carry the minimal stuff needed.
Server-side we repair this support. On detection of a markdown file, it should warn that this file is skipped due to pandoc missing.
If pandoc is installed, it should be used by piping that markdown into pandoc -f gfm -t djot and then taking the outputted Djot.
Of course also manipulate the filename field to apply the .dj extension.
This just parses the markdown on-the-fly to Djot and serves it to the client. A future reinit command that'd update the config format could also write these Djot files. However writing to files during regular run causes overhead and risks of losing user-defined markup.