fix #19: return immediately from link skipping if end of emphasis is found

pull/138/head
KenjiTakahashi 2014-12-29 00:32:26 +01:00
parent fdda8b88b0
commit f147218833
1 changed files with 1 additions and 1 deletions

View File

@ -948,7 +948,7 @@ func helperFindEmphChar(data []byte, c byte) int {
i++
for i < len(data) && data[i] != cc {
if tmpI == 0 && data[i] == c {
tmpI = i
return i
}
i++
}