diff options
Diffstat (limited to 'markup/goldmark/goldmark_config/config.go')
-rw-r--r-- | markup/goldmark/goldmark_config/config.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/markup/goldmark/goldmark_config/config.go b/markup/goldmark/goldmark_config/config.go index a3238091b..ff0b6bbef 100644 --- a/markup/goldmark/goldmark_config/config.go +++ b/markup/goldmark/goldmark_config/config.go @@ -36,8 +36,9 @@ var Default = Config{ Unsafe: false, }, Parser: Parser{ - AutoHeadingID: true, - AutoHeadingIDType: AutoHeadingIDTypeGitHub, + AutoHeadingID: true, + AutoHeadingIDType: AutoHeadingIDTypeGitHub, + WrapStandAloneImageWithinParagraph: true, Attribute: ParserAttribute{ Title: true, Block: false, @@ -88,6 +89,9 @@ type Parser struct { // Enables custom attributes. Attribute ParserAttribute + + // Whether to wrap stand-alone images within a paragraph or not. + WrapStandAloneImageWithinParagraph bool } type ParserAttribute struct { |