diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 12:03:06 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 12:03:15 +0200 |
| commit | cdb0a541554aa4a16fc71b6425225e8c603c83b8 (patch) | |
| tree | 283fb876c55647235c2990cc42ed04e199f448f1 /mardown/ast.go | |
| parent | c176f81dc60d558edfe626ac805a0173c12f317d (diff) | |
feat(markdown): support external link and image (without source)
Diffstat (limited to 'mardown/ast.go')
| -rw-r--r-- | mardown/ast.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mardown/ast.go b/mardown/ast.go index 3794ff1..ed4d1f8 100644 --- a/mardown/ast.go +++ b/mardown/ast.go @@ -37,7 +37,7 @@ func (t *tree) String() string { func ast(lxs *lexers) (*tree, error) { tr := new(tree) - newLine := false + newLine := true for lxs.Next() { b, err := getBlock(lxs, newLine) if err != nil { @@ -64,8 +64,8 @@ func getBlock(lxs *lexers, newLine bool) (block, error) { b, err = header(lxs) } case lexerExternal: - if newLine && lxs.Current().Value == "!" { - //TODO: handle + if newLine && lxs.Current().Value == "