Commit graph

32 commits

Author SHA1 Message Date
c6b43b2c48 Implement escaping 2026-01-07 01:02:57 -03:00
0d910634c6 Implement underline and strikethrough tokens 2026-01-06 23:10:33 -03:00
40030c7b5b Move tests to corresponding context parsing modules 2026-01-05 13:52:26 -03:00
b54def15e0 Extract block and inline content parsing to their own modules 2026-01-05 13:38:34 -03:00
6b739d93c2 Replace all uses and implementations of new() with default() 2026-01-05 13:20:48 -03:00
315956e20d Make Oblique no longer a context, add a point module 2026-01-05 12:52:48 -03:00
de5b3dd377 Extract content parser state to its own module 2026-01-05 11:29:47 -03:00
735b58866c Make lexeme and token logging more concise 2026-01-05 11:10:50 -03:00
cb24837ff0 Fix unbalanced anchor tags 2026-01-05 00:51:52 -03:00
9f04a4606c Handle several anchor edge cases 2026-01-03 16:06:16 -03:00
cbefcdcad7 Simplify Anchor context parser 2026-01-02 21:26:33 -03:00
21ab00b3eb Improve testing and handling of some Anchor edge cases 2026-01-02 14:34:08 -03:00
8d204503a8 Derive Debug and Clone for tokens and parser state 2026-01-02 14:30:36 -03:00
5ed2036e36 Extract context-specific parsing to a separate module 2026-01-02 00:53:42 -03:00
bfd22bb6fa Improve forced flanking node rendering 2026-01-01 21:58:39 -03:00
8ee0ad7977 Add Oblique token 2026-01-01 21:58:39 -03:00
a71a9f4224 Make Lexeme text field private, add last field 2026-01-01 21:58:34 -03:00
bb5dde6c2e Fix closing of EOF open preformat context 2026-01-01 21:51:41 -03:00
7300a29b67 Concentrate configuration content parsing in syntax::serial
Fixes some pages not having parsed input by making it much harder to
construct a config with unparsed text, which is something you basically
never want. The parsing now happens much earlier and consumers don't
need to remember to parse the configuration anymore.

Fixes a possible stack overflow due to parsing and configuration
depending on each other.

This commit also has dependencies updates and minor justfile tweaks.
2025-12-28 06:27:30 -03:00
e50bbd468d Add tests for the content syntax parser 2025-12-26 04:20:10 -03:00
da0ed3f2b3 Add closing function on content syntax parser
This provides saner, more testable, properly closed output even without
a trailing newline.
2025-12-26 01:18:38 -03:00
6c026853e8 Fix forced flanking anchor destination resolution 2025-12-26 01:17:27 -03:00
14dc84cc43 Reorganize module structure 2025-12-24 12:45:14 -03:00
51047ad11c Fix and document some Anchor Syntax corner cases 2025-12-24 12:20:28 -03:00
8b782d6d20 Rework token segmentation 2025-12-23 21:53:56 -03:00
1f4a9faa75 Automatic header IDs 2025-12-21 14:50:42 -03:00
e3d5686c7b Simplify parser module structure, add several syntax elements 2025-12-20 21:25:06 -03:00
198bc12507 Add word-level parsing 2025-12-18 11:35:08 -03:00
d51b9a135e Scaffold a second content parser pass 2025-12-17 00:16:44 -03:00
5d28a2e707 Make default element generic 2025-12-16 19:01:20 -03:00
f61fc4dd28 Fix redundant filter in content parser 2025-12-16 04:09:43 -03:00
984c8bcdcc Heavy refactor and restructuring of content parser 2025-12-16 03:48:42 -03:00