mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
committed by
Bjørn Erik Pedersen
parent
2dd608378d
commit
d0d2c6795e
@@ -49,6 +49,13 @@ var Default = Config{
|
||||
EastAsianLineBreaksStyle: "simple",
|
||||
EscapedSpace: false,
|
||||
},
|
||||
Passthrough: Passthrough{
|
||||
Enable: false,
|
||||
Delimiters: DelimitersConfig{
|
||||
Inline: [][]string{},
|
||||
Block: [][]string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
Renderer: Renderer{
|
||||
Unsafe: false,
|
||||
@@ -75,6 +82,7 @@ type Extensions struct {
|
||||
Typographer Typographer
|
||||
Footnote bool
|
||||
DefinitionList bool
|
||||
Passthrough Passthrough
|
||||
|
||||
// GitHub flavored markdown
|
||||
Table bool
|
||||
@@ -112,6 +120,28 @@ type Typographer struct {
|
||||
Apostrophe string
|
||||
}
|
||||
|
||||
// Passthrough hold passthrough configuration.
|
||||
// github.com/hugoio/hugo-goldmark-extensions/passthrough
|
||||
type Passthrough struct {
|
||||
// Whether to enable the extension
|
||||
Enable bool
|
||||
|
||||
// The delimiters to use for inline and block passthroughs.
|
||||
Delimiters DelimitersConfig
|
||||
}
|
||||
|
||||
type DelimitersConfig struct {
|
||||
// The delimiters to use for inline passthroughs. Each entry in the list
|
||||
// is a size-2 list of strings, where the first string is the opening delimiter
|
||||
// and the second string is the closing delimiter, e.g.,
|
||||
//
|
||||
// [["$", "$"], ["\\(", "\\)"]]
|
||||
Inline [][]string
|
||||
|
||||
// The delimiters to use for block passthroughs. Same format as Inline.
|
||||
Block [][]string
|
||||
}
|
||||
|
||||
type CJK struct {
|
||||
// Whether to enable CJK support.
|
||||
Enable bool
|
||||
|
Reference in New Issue
Block a user