diff --git a/_test/extra.txt b/_test/extra.txt index c7a4be7..d500717 100644 --- a/_test/extra.txt +++ b/_test/extra.txt @@ -76,3 +76,21 @@ place where everything breaks") place where everything breaks">This link won't be rendered correctly

//= = = = = = = = = = = = = = = = = = = = = = = =// + + + +7 +//- - - - - - - - -// +[](./target.md) +//- - - - - - - - -// +

+//= = = = = = = = = = = = = = = = = = = = = = = =// + + + +8 +//- - - - - - - - -// +[]() +//- - - - - - - - -// +

+//= = = = = = = = = = = = = = = = = = = = = = = =// \ No newline at end of file diff --git a/parser/link.go b/parser/link.go index 8611194..e7c6966 100644 --- a/parser/link.go +++ b/parser/link.go @@ -147,11 +147,6 @@ func (s *linkParser) Parse(parent ast.Node, block text.Reader, pc Context) ast.N ast.MergeOrReplaceTextSegment(last.Parent(), last, last.Segment) return nil } - labelValue := block.Value(text.NewSegment(last.Segment.Start+1, segment.Start)) - if util.IsBlank(labelValue) && !last.IsImage { - ast.MergeOrReplaceTextSegment(last.Parent(), last, last.Segment) - return nil - } c := block.Peek() l, pos := block.Position()