mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Fixes #104 : Invalid precending character breaks emphasis
This commit is contained in:
parent
a727b5adb2
commit
21437947a3
1 changed files with 5 additions and 1 deletions
|
|
@ -332,7 +332,11 @@ func (r *blockReader) PrecendingCharacter() rune {
|
|||
if r.pos.Padding != 0 {
|
||||
return rune(' ')
|
||||
}
|
||||
if r.pos.Start <= 0 {
|
||||
if r.segments.Len() < 1 {
|
||||
return rune('\n')
|
||||
}
|
||||
firstSegment := r.segments.At(0)
|
||||
if r.line == 0 && r.pos.Start <= firstSegment.Start {
|
||||
return rune('\n')
|
||||
}
|
||||
l := len(r.source)
|
||||
|
|
|
|||
Loading…
Reference in a new issue