"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/content/en/getting-started/configuration-markup.md" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

configuration-markup.md  (hugo-0.80.0):configuration-markup.md  (hugo-0.81.0)
skipping to change at line 43 skipping to change at line 43
For details on the extensions, refer to [this section](https://github.com/yuin/g oldmark/#built-in-extensions) of the Goldmark documentation For details on the extensions, refer to [this section](https://github.com/yuin/g oldmark/#built-in-extensions) of the Goldmark documentation
Some settings explained: Some settings explained:
unsafe unsafe
: By default, Goldmark does not render raw HTMLs and potentially dangerous links . If you have lots of inline HTML and/or JavaScript, you may need to turn this o n. : By default, Goldmark does not render raw HTMLs and potentially dangerous links . If you have lots of inline HTML and/or JavaScript, you may need to turn this o n.
typographer typographer
: This extension substitutes punctuations with typographic entities like [smarty pants](https://daringfireball.net/projects/smartypants/). : This extension substitutes punctuations with typographic entities like [smarty pants](https://daringfireball.net/projects/smartypants/).
attribute
: Enable custom attribute support for titles and blocks by adding attribute list
s inside single curly brackets (`{.myclass class="class1 class2" }`) and placing
it _after the Markdown element it decorates_, on the same line for titles and o
n a new line directly below for blocks.
{{< new-in "0.81" >}} In Hugo 0.81.0 we added support for adding attributes (e.g
. CSS classes) to Markdown blocks, e.g. tables, lists, paragraphs etc.
A blockquote with a CSS class:
```md
> foo
> bar
{.myclass}
```
There are some current limitations: For tables you can currently only apply it t
o the full table, and for lists the `ul`/`ol`-nodes only, e.g.:
```md
* Fruit
* Apple
* Orange
* Banana
{.fruits}
* Dairy
* Milk
* Cheese
{.dairies}
{.list}
```
autoHeadingIDType ("github") {{< new-in "0.62.2" >}} autoHeadingIDType ("github") {{< new-in "0.62.2" >}}
: The strategy used for creating auto IDs (anchor names). Available types are `g ithub`, `github-ascii` and `blackfriday`. `github` produces GitHub-compatible ID s, `github-ascii` will drop any non-Ascii characters after accent normalization, and `blackfriday` will make the IDs work as with [Blackfriday](#blackfriday), t he default Markdown engine before Hugo 0.60. Note that if Goldmark is your defau lt Markdown engine, this is also the strategy used in the [anchorize](/functions /anchorize/) template func. : The strategy used for creating auto IDs (anchor names). Available types are `g ithub`, `github-ascii` and `blackfriday`. `github` produces GitHub-compatible ID s, `github-ascii` will drop any non-Ascii characters after accent normalization, and `blackfriday` will make the IDs work as with [Blackfriday](#blackfriday), t he default Markdown engine before Hugo 0.60. Note that if Goldmark is your defau lt Markdown engine, this is also the strategy used in the [anchorize](/functions /anchorize/) template func.
### Blackfriday ### Blackfriday
[Blackfriday](https://github.com/russross/blackfriday) was Hugo's default Markdo wn rendering engine, now replaced with Goldmark. But you can still use it: Just set `defaultMarkdownHandler` to `blackfriday` in your top level `markup` config. [Blackfriday](https://github.com/russross/blackfriday) was Hugo's default Markdo wn rendering engine, now replaced with Goldmark. But you can still use it: Just set `defaultMarkdownHandler` to `blackfriday` in your top level `markup` config.
This is the default config: This is the default config:
{{< code-toggle config="markup.blackFriday" />}} {{< code-toggle config="markup.blackFriday" />}}
 End of changes. 1 change blocks. 
0 lines changed or deleted 33 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)