diff options
Diffstat (limited to 'modules/markup/common/linkify.go')
-rw-r--r-- | modules/markup/common/linkify.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/markup/common/linkify.go b/modules/markup/common/linkify.go index 25621bf801..8a4b2a8985 100644 --- a/modules/markup/common/linkify.go +++ b/modules/markup/common/linkify.go @@ -122,9 +122,7 @@ func (s *linkifyParser) Parse(parent ast.Node, block text.Reader, pc parser.Cont } } } - if m == nil { - return nil - } + if consumes != 0 { s := segment.WithStop(segment.Start + 1) ast.MergeOrAppendTextSegment(parent, s) |