1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-03-13 09:44:53 +00:00
hugo/docs/content/en/readfiles
Bjørn Erik Pedersen bfb9613a14
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 
Fixes 
Fixes 
2019-11-23 14:12:24 +01:00
..
dateformatting.md
index.md
pages-vs-site-pages.md
README.md
sectionvars.md
testing.txt

readdirs Directory for Reusable Content

Files in this directory are:

  1. Used in more than one place within the Hugo docs
  2. Used in Examples of readdir (i.e. in local file templates)

These files are called using the readfile shortcode (source).

You can call this shortcode in the docs as follows:

{{% readfile file="/path/to/file.txt" markdown="true" %}}

markdown="true" is optional (default = "false") and parses the string through the Blackfriday renderer.