Add Goldmark as the new default markdown handler
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 6 Nov 2019 19:10:47 +0000 (20:10 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 23 Nov 2019 13:12:24 +0000 (14:12 +0100)
commitbfb9613a14ab2d93a4474e5486d22e52a9d5e2b3
tree81c4dbd10505e952489e1dbcf1d7bafc88b57c28
parenta3fe5e5e35f311f22b6b4fc38abfcf64cd2c7d6f
Add Goldmark as the new default markdown handler

This commit adds the fast and CommonMark compliant Goldmark as the new default markdown handler in Hugo.

If you want to continue using BlackFriday as the default for md/markdown extensions, you can use this configuration:

```toml
[markup]
defaultMarkdownHandler="blackfriday"
```

Fixes #5963
Fixes #1778
Fixes #6355
69 files changed:
commands/genchromastyles.go
docs/config.toml
docs/config/_default/config.toml
docs/content/en/about/features.md
docs/content/en/content-management/formats.md
docs/content/en/content-management/syntax-highlighting.md
docs/content/en/contribute/documentation.md
docs/content/en/functions/highlight.md
docs/content/en/getting-started/configuration-markup.md [new file with mode: 0644]
docs/content/en/getting-started/configuration.md
docs/content/en/getting-started/installing.md
docs/content/en/readfiles/bfconfig.md [deleted file]
docs/content/en/templates/shortcode-templates.md
docs/data/docs.json
docs/layouts/shortcodes/code-toggle.html [new file with mode: 0644]
docs/layouts/shortcodes/new-in.html [new file with mode: 0644]
docs/requirements.txt [deleted file]
go.mod
go.sum
helpers/content.go
helpers/general.go
helpers/general_test.go
helpers/pygments.go [deleted file]
helpers/pygments_test.go [deleted file]
hugolib/case_insensitive_test.go
hugolib/config.go
hugolib/hugo_sites_build_test.go
hugolib/page__meta.go
hugolib/page__per_output.go
hugolib/page_test.go
hugolib/shortcode_test.go
hugolib/site_benchmark_new_test.go
hugolib/site_test.go
hugolib/testhelpers_test.go
markup/asciidoc/convert.go
markup/blackfriday/blackfriday_config/config.go [new file with mode: 0644]
markup/blackfriday/convert.go
markup/blackfriday/convert_test.go
markup/blackfriday/renderer.go
markup/converter/converter.go
markup/goldmark/convert.go [new file with mode: 0644]
markup/goldmark/convert_test.go [new file with mode: 0644]
markup/goldmark/goldmark_config/config.go [new file with mode: 0644]
markup/goldmark/toc.go [new file with mode: 0644]
markup/goldmark/toc_test.go [new file with mode: 0644]
markup/highlight/config.go [new file with mode: 0644]
markup/highlight/config_test.go [new file with mode: 0644]
markup/highlight/highlight.go [new file with mode: 0644]
markup/highlight/highlight_test.go [new file with mode: 0644]
markup/highlight/temphighlighting/highlighting.go [new file with mode: 0644]
markup/highlight/temphighlighting/highlighting_test.go [new file with mode: 0644]
markup/internal/blackfriday.go [deleted file]
markup/markup.go
markup/markup_config/config.go [new file with mode: 0644]
markup/markup_config/config_test.go [new file with mode: 0644]
markup/markup_test.go
markup/mmark/convert.go
markup/mmark/convert_test.go
markup/mmark/renderer.go
markup/org/convert.go
markup/pandoc/convert.go
markup/rst/convert.go
markup/tableofcontents/tableofcontents.go [new file with mode: 0644]
markup/tableofcontents/tableofcontents_test.go [new file with mode: 0644]
parser/lowercase_camel_json.go [new file with mode: 0644]
tpl/transform/remarshal.go
tpl/transform/remarshal_test.go
tpl/transform/transform.go
tpl/transform/transform_test.go