mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
#248 - 5
This commit is contained in:
parent
20a276ea45
commit
cbaee30aee
2 changed files with 29 additions and 2 deletions
|
|
@ -526,3 +526,30 @@ _a[b_c_](d)
|
||||||
<p><a\f></p>
|
<p><a\f></p>
|
||||||
<p>< p></p>
|
<p>< p></p>
|
||||||
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||||
|
|
||||||
|
41: Link references can not contain spaces after link label
|
||||||
|
//- - - - - - - - -//
|
||||||
|
[x]
|
||||||
|
:>
|
||||||
|
|
||||||
|
[o] :x
|
||||||
|
//- - - - - - - - -//
|
||||||
|
<p>[x]
|
||||||
|
:></p>
|
||||||
|
<p>[o] :x</p>
|
||||||
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||||
|
|
||||||
|
|
||||||
|
42: Unclosed link reference titles can interrupt link references
|
||||||
|
//- - - - - - - - -//
|
||||||
|
[r]:
|
||||||
|
<>
|
||||||
|
'
|
||||||
|
|
||||||
|
[o]:
|
||||||
|
x
|
||||||
|
'
|
||||||
|
//- - - - - - - - -//
|
||||||
|
<p>'</p>
|
||||||
|
<p>'</p>
|
||||||
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,6 @@ func parseLinkReferenceDefinition(block text.Reader, pc Context) (int, int) {
|
||||||
if util.IsBlank(label) {
|
if util.IsBlank(label) {
|
||||||
return -1, -1
|
return -1, -1
|
||||||
}
|
}
|
||||||
block.SkipSpaces()
|
|
||||||
if block.Peek() != ':' {
|
if block.Peek() != ':' {
|
||||||
return -1, -1
|
return -1, -1
|
||||||
}
|
}
|
||||||
|
|
@ -123,7 +122,8 @@ func parseLinkReferenceDefinition(block text.Reader, pc Context) (int, int) {
|
||||||
}
|
}
|
||||||
ref := NewReference(label, destination, nil)
|
ref := NewReference(label, destination, nil)
|
||||||
pc.AddReference(ref)
|
pc.AddReference(ref)
|
||||||
return startLine, endLine
|
block.AdvanceLine()
|
||||||
|
return startLine, endLine + 1
|
||||||
}
|
}
|
||||||
var title []byte
|
var title []byte
|
||||||
if segments.Len() == 1 {
|
if segments.Len() == 1 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue