mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
@@ -136,6 +136,19 @@ func newMarkdown(pcfg converter.ProviderConfig) goldmark.Markdown {
|
||||
extensions = append(extensions, extension.Footnote)
|
||||
}
|
||||
|
||||
if cfg.Extensions.CJK.Enable {
|
||||
opts := []extension.CJKOption{}
|
||||
if cfg.Extensions.CJK.EastAsianLineBreaks {
|
||||
opts = append(opts, extension.WithEastAsianLineBreaks())
|
||||
}
|
||||
|
||||
if cfg.Extensions.CJK.EscapedSpace {
|
||||
opts = append(opts, extension.WithEscapedSpace())
|
||||
}
|
||||
c := extension.NewCJK(opts...)
|
||||
extensions = append(extensions, c)
|
||||
}
|
||||
|
||||
if cfg.Parser.AutoHeadingID {
|
||||
parserOptions = append(parserOptions, parser.WithAutoHeadingID())
|
||||
}
|
||||
|
Reference in New Issue
Block a user