Skip to content

Redesign: Adopt Djot as default instead of markdown #28

@strawmelonjuice

Description

@strawmelonjuice

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions