- New property: HUGO_PREFER_HYPHEN_IN_TAGS
- Default value of this property derived from a new defcustom
org-hugo-prefer-hyphen-in-tags
- New helper function: org-hugo--transform-org-tags
- Optimize dolist loop to mapcar in
org-hugo--selective-property-inheritance
- Docstring improvements in few defvars
- Add tests
Inspired by
77ddd60a38
- Now the <!--listend--> and <!--quoteend--> comments are not inserted
unless needed.
- Fix the "example-site/content/posts/equation-latex-frag.md" example.
Now,
- =foo= -> <code>foo</code> in HTML (same as before)
- ~foo~ -> <kbd>foo</kbd> in HTML (new functionality)
You can still get the below behavior by setting
`org-hugo-use-code-for-kbd` to nil, or setting the
`EXPORT_HUGO_USE_CODE_FOR_KBD` property value in a subtree property
drawer to empty (see example).
- ~foo~ -> <code>foo</code> in HTML (old behavior; before this commit)
Add tests.
Closes https://github.com/kaushalmodi/ox-hugo/issues/53
- Blackfriday automatically renders "--" as en-dash, "---" as em-dash and
so on. So there is no need for Org to replace those with the HTML
special characters in the Markdown itself. This also makes the
Markdown more readable.
- Titles are now sanitized. HTML anyways does not allow bold, italics,
etc markup in the <title> section. Now Markdown markup for the same
are removed from the title variable in front matter.
User can still override this default by using:
#+OPTIONS: ':t
The default smart-quoting by Blackfriday is good enough. As a side the
Markdown files are much more human-readable with the
single and double quote characters used instead of rsquo, lsquo, rdquo
and ldquo.
The option is set by the HUGO_CODE_FENCE property.
- If set to t (default), Markdown code fence is used.
- Else Hugo `highlight' shortcode is used.
Add examples.