diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-30 17:40:27 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-30 17:40:27 +0200 |
| commit | baccf109b9d7eb7e95f084579eaea7b6d88b782b (patch) | |
| tree | d8908415f92828ef4de568280ed67833536a7e03 /mardown/ast.go | |
| parent | c40941359d46468ecd0b71919e34a1c481c7bee2 (diff) | |
feat(markdown): ast for literal and line break
support header in header
Diffstat (limited to 'mardown/ast.go')
| -rw-r--r-- | mardown/ast.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mardown/ast.go b/mardown/ast.go index 76328f4..819d73a 100644 --- a/mardown/ast.go +++ b/mardown/ast.go @@ -37,13 +37,13 @@ func getBlock(lxs lexers) (block, error) { switch lxs.Current().Type { case lexerHeader: b, err = header(lxs) - case lexerBreak: case lexerExternal: case lexerModifier: case lexerCode: case lexerEscape: case lexerQuote: - case lexerLiteral: + case lexerLiteral, lexerBreak: + b = astLiteral(lxs.Current().Value) default: err = errors.Join(ErrUnkownLexType, fmt.Errorf("type received: %s", lxs.Current().Type)) } |
