diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-30 18:25:15 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-30 18:25:15 +0200 |
| commit | a36f5482ad90d6899d56e016666a2ca09240abd6 (patch) | |
| tree | 662910a41786a7d77cfb55f069236eef1c2a2639 /src/parser.zig | |
| parent | 3fd5b4a9ad676b722f1f889f523b4ca368f05275 (diff) | |
feat(): support math block
Diffstat (limited to 'src/parser.zig')
| -rw-r--r-- | src/parser.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser.zig b/src/parser.zig index e7a3aff..3dba456 100644 --- a/src/parser.zig +++ b/src/parser.zig @@ -10,6 +10,7 @@ const list = @import("list.zig"); const code = @import("code.zig"); const callout = @import("callout.zig"); const quote = @import("quote.zig"); +const math = @import("math.zig"); pub const Error = error{FeatureNotSupported} || Lexer.Error || @@ -21,6 +22,7 @@ pub const Error = error{FeatureNotSupported} || code.Error || callout.Error || quote.Error || + math.Error || Allocator.Error; pub const Document = Element.Root; @@ -49,6 +51,7 @@ fn gen(parent: Allocator, l: *Lexer) Error!*Document { .image => try link.parseImage(alloc, l), .code_block => try code.parse(alloc, l), .quote => try quote.parse(alloc, l), + .math_block => try math.parse(alloc, l), .weak_delimiter, .strong_delimiter => { l.consume(); continue :base; |
