Text reflow woes (or: I want bullets back!)y

Michael Lazar lazar.michael22 at gmail.com
Fri Sep 6 16:43:07 BST 2019
On Fri, Sep 6, 2019 at 1:33 AM Sean Conner <sean at conman.org> wrote:
>   I read through those, and it appears that you generate an AST from the
> markdown-like text, then run through that AST to generate HTML.  Is there
> code to generate text output, or is that just the file itself?
>
>   -spc

The design_document.tx is the original markdown-like document that I wrote.
As you suspected, here's what I ran to generate the other files:

    $ ./parse.py design_document.txt > design_document.json
    $ ./render.py design_document.json > design_document.html

I didn't include anything that can take the AST and render it as plain text. I
suppose it would be pretty trivial to write though. That could be something
that a TUI gemini client might utilize to generate a "fancy" text display like
colorizing links or making title elements bold + centered.


Archive home | About this archive