ojroques / hugo-researcher

A simple resume theme for Hugo
GNU General Public License v3.0
229 stars 130 forks source link

Raw HTML shortcode #24

Closed physkets closed 3 years ago

physkets commented 3 years ago

Instead of allowing "unsafe" rendering, how about having a shortcode for raw HTML, like so:
https://anaulin.org/blog/hugo-raw-html-shortcode/

physkets commented 3 years ago

Maybe this isn't necessary, because it is easily achieved by allowing for and setting an attribute as described here:
https://discourse.gohugo.io/t/reversed-ordered-list-with-raw-html/33644/2

In config.toml:

[markup.goldmark.parser.attribute]
block = true

In the MD file:

1. Foo
1. Bar
1. Baz
{reversed="reversed"}