Commit Graph

3 Commits

Author SHA1 Message Date
Zorchenhimer b952ac99ac Fix a lot of memory leaks
Added a bunch of code to free created objects.  One notable change was
to return the next token from FreeToken() to cut down on boiler plate
code that kept track of a "consumed" token.  Now all that just happens
in FreeToken() and I don't have to worry about that anywhere else.

Also added FreeNode() to free all nodes.  This wasn't done before at
all.  Like FreeToken(), it will return the next node in the list to
avoid having to track that stuff in the calling context.
2023-11-15 21:43:03 -05:00
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 5e1d6ae207 Initial commit 2021-07-14 11:15:46 -04:00