Use EXTENSION_BACKSLASH_LINE_BREAK
This commit is contained in:
parent
d4c83fb4da
commit
c1917970db
|
@ -168,6 +168,7 @@ func lineBreak(p *parser, out *bytes.Buffer, data []byte, offset int) int {
|
|||
|
||||
precededByTwoSpaces := offset >= 2 && data[offset-2] == ' ' && data[offset-1] == ' '
|
||||
precededByBackslash := offset >= 1 && data[offset-1] == '\\' // see http://spec.commonmark.org/0.18/#example-527
|
||||
precededByBackslash = precededByBackslash && p.flags&EXTENSION_BACKSLASH_LINE_BREAK != 0
|
||||
|
||||
// should there be a hard line break here?
|
||||
if p.flags&EXTENSION_HARD_LINE_BREAK == 0 && !precededByTwoSpaces && !precededByBackslash {
|
||||
|
|
Loading…
Reference in New Issue