mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
markup/goldmark: Update the CJK extension to allow specifying line break styles
This commit follows https://github.com/yuin/goldmark/pull/411
This commit is contained in:
@@ -44,9 +44,10 @@ var Default = Config{
|
||||
LinkifyProtocol: "https",
|
||||
TaskList: true,
|
||||
CJK: CJK{
|
||||
Enable: false,
|
||||
EastAsianLineBreaks: false,
|
||||
EscapedSpace: false,
|
||||
Enable: false,
|
||||
EastAsianLineBreaks: false,
|
||||
EastAsianLineBreaksStyle: "simple",
|
||||
EscapedSpace: false,
|
||||
},
|
||||
},
|
||||
Renderer: Renderer{
|
||||
@@ -118,6 +119,9 @@ type CJK struct {
|
||||
// Whether softline breaks between east asian wide characters should be ignored.
|
||||
EastAsianLineBreaks bool
|
||||
|
||||
// Styles of Line Breaking of EastAsianLineBreaks: "simple" or "css3draft"
|
||||
EastAsianLineBreaksStyle string
|
||||
|
||||
// Whether a '\' escaped half-space(0x20) should not be rendered.
|
||||
EscapedSpace bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user