Commit Graph

4 Commits

Author SHA1 Message Date
Zorchenhimer c17eaf1ec4 Implement the paragraph node
This node handles both plain paragraphs as well as block quotes. Single
newlines are turned into spaces, double newlines terminate the block.
Care is taken to not have repeated whitespace tokens in the content,
while keeping the number of spaces.
2023-10-22 22:29:38 -04:00
Zorchenhimer 7d8ed24eaf Remove the TokenList structure
This struct was just a container for two pointers and just made things
painful.  This structure has been removed and the next pointer has been
moved to the Token struct.

Also, add a null check to the calling context after NewLexer().
2023-10-22 16:50:18 -04:00
Zorchenhimer d855df380b Add codeblocks; Fix some stuff
- Parse code blocks that are wrapped sets of three backticks.
- Added a TT_TRIPLEBACKTICK token.
- Added a length field to the Token struct.
- Added an error node.
- Cleaned up some file read code.
- Fixed the header raw text (don't reuse the same buffer for each node).
2023-10-15 20:55:12 -04:00
Zorchenhimer 5e1d6ae207 Initial commit 2021-07-14 11:15:46 -04:00