Add non-standard ealb (east asian line break) option
See pandoc: https://pandoc.org/MANUAL.html#extension-east_asian_line_breaks
This commit is contained in:
parent
0e68f1db40
commit
c901c00166
6 changed files with 43 additions and 4 deletions
|
@ -311,7 +311,9 @@ func (w *HTMLWriter) WriteStatisticToken(s StatisticToken) {
|
|||
}
|
||||
|
||||
func (w *HTMLWriter) WriteLineBreak(l LineBreak) {
|
||||
w.WriteString(strings.Repeat("\n", l.Count))
|
||||
if w.document.GetOption("ealb") == "nil" || !l.BetweenMultibyteCharacters {
|
||||
w.WriteString(strings.Repeat("\n", l.Count))
|
||||
}
|
||||
}
|
||||
|
||||
func (w *HTMLWriter) WriteExplicitLineBreak(l ExplicitLineBreak) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue