aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_paragraph.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 15:04:54 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 15:04:54 +0200
commit511ad88f6bf7b0ec971df407469c494d9dcb139e (patch)
treea654ebad83f1123c0ea23fe52f3f9d809bcbe56c /mardown/ast_paragraph.go
parent02f1e42a7f83f041627eace65675c1d6cea7e8cc (diff)
feat(markdown): rewrite modifier parser to construct a better tree
Diffstat (limited to 'mardown/ast_paragraph.go')
-rw-r--r--mardown/ast_paragraph.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/mardown/ast_paragraph.go b/mardown/ast_paragraph.go
index 1a78ced..3e8d027 100644
--- a/mardown/ast_paragraph.go
+++ b/mardown/ast_paragraph.go
@@ -69,6 +69,9 @@ func paragraph(lxs *lexers, oneLine bool) (*astParagraph, error) {
//TODO: handle
case lexerExternal:
n = 0
+ if lxs.Current().Value == "!" {
+ tree.content = append(tree.content, astLiteral(lxs.Current().Value))
+ }
//TODO: handle
case lexerCode:
n = 0