Papyrix vendors "md_parser" to actually parse Markdown files, though it might be better to call it a lexer. Though at the same time Papyrix's "parsers" perform a fair bit of layout logic.
Reportedly md_parser was specifically designed for ESP32 microcontrollers like what Papyrix runs on, yet Papyrix adds logic around it to cut down on RAM use.
For datastructures md_parser defines an enum of different tokens. Furthermore it has a struct adding sized-text & possibly an int to these tokens.
1/?