From b07dd267fc10812f7e94bf6d9be08667537dd331 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 1 Oct 2025 09:29:16 +0200 Subject: fix(markdown): modifier and paragraph does not handle ! --- mardown/ast_modifier.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mardown') diff --git a/mardown/ast_modifier.go b/mardown/ast_modifier.go index 2d1cd4f..46d5874 100644 --- a/mardown/ast_modifier.go +++ b/mardown/ast_modifier.go @@ -75,7 +75,12 @@ func modifier(lxs *lexers) (*astModifier, error) { case lexerBreak: lxs.current-- // because we did not use it return mod, nil + case lexerExternal: + if lxs.Current().Value == "!" { + s += lxs.Current().Value + } default: + println(lxs.Current().Type, lxs.Current().Value) return nil, ErrInvalidTypeInModifier } } -- cgit v1.2.3