Scheme Gemtext Reader

siiky

2022/07/05

2022/07/05

en

Yesterday I made a Scheme library to read Gemtext into a simple AST: a list of lines of text, headers, links, list blocks, or code blocks.

Text

Just a string, not tagged in any way. Empty lines are kept.

Headers

If *strict-gemtext-headers* is enabled, header lines of level > 3 are not considered headers.

If there's no alt text, the empty string is used:

Lists

Code blocks

(pretend there's no space between the three backticks)

If there's no alt text, the empty string is used:

Example

Output Patterns