diff options
Diffstat (limited to 'src/title.zig')
| -rw-r--r-- | src/title.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/title.zig b/src/title.zig index d9b5612..de88c67 100644 --- a/src/title.zig +++ b/src/title.zig @@ -18,7 +18,10 @@ pub fn parse(alloc: Allocator, l: *Lexer) Error!Element { 6 => "h6", else => unreachable, }); - try el.appendContent(try paragraph.parseContent(alloc, l)); + try el.appendContent(paragraph.parseLine(alloc, l) catch |err| switch (err) { + paragraph.Error.IllegalPlacement => return Error.InvalidTitleContent, + else => return err, + }); v = (try l.next(alloc)) orelse return el; if (!v.kind.isDelimiter()) return Error.InvalidTitleContent; v.deinit(); |
