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

This commit is contained in:
KenjiTakahashi 2014-12-29 00:32:26 +01:00
parent fdda8b88b0
commit f147218833

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++
}