mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
@@ -43,6 +43,11 @@ var Default = Config{
|
||||
Linkify: true,
|
||||
LinkifyProtocol: "https",
|
||||
TaskList: true,
|
||||
CJK: CJK{
|
||||
Enable: false,
|
||||
EastAsianLineBreaks: false,
|
||||
EscapedSpace: false,
|
||||
},
|
||||
},
|
||||
Renderer: Renderer{
|
||||
Unsafe: false,
|
||||
@@ -76,6 +81,7 @@ type Extensions struct {
|
||||
Linkify bool
|
||||
LinkifyProtocol string
|
||||
TaskList bool
|
||||
CJK CJK
|
||||
}
|
||||
|
||||
// Typographer holds typographer configuration.
|
||||
@@ -105,6 +111,17 @@ type Typographer struct {
|
||||
Apostrophe string
|
||||
}
|
||||
|
||||
type CJK struct {
|
||||
// Whether to enable CJK support.
|
||||
Enable bool
|
||||
|
||||
// Whether softline breaks between east asian wide characters should be ignored.
|
||||
EastAsianLineBreaks bool
|
||||
|
||||
// Whether a '\' escaped half-space(0x20) should not be rendered.
|
||||
EscapedSpace bool
|
||||
}
|
||||
|
||||
type Renderer struct {
|
||||
// Whether softline breaks should be rendered as '<br>'
|
||||
HardWraps bool
|
||||
|
Reference in New Issue
Block a user