From Org-mode marukup to Markdown
Here are how ox-hugo convert markups (like bold, mono) in Org to Markdown.
Org | Markdown | HTML |
---|---|---|
*bold* |
**bold** |
bold |
/italics/ |
_italics_ |
italics |
=monospace= |
`monospace` |
monospace |
~key-binding~ |
`key-binding` |
key-binding |
- if org-hugo-use-code-for-kbd nil [Default] |
||
~key-binding~ |
<kbd>key-binding</kbd> |
|
- if org-hugo-use-code-for-kbd is not nil |
||
- To render <kbd> tag, needs CSS |
||
+strike-through+ |
~~strike-through~~ |
|
_underline_ |
<span class = "underline">underline</span> |
underline |
- to render this as underline, CSS is needed |
I have set
org-hugo-use-code-for-kbd
to t
:
Code Snippet 1: Use <kbd> for key-binding
(emacs-lisp)
(setq org-hugo-use-code-for-kbd t)
And add CSS styles like this:
(css)
kbd {
padding: 0.2rem 0.4rem;
font-size: 87.5%;
color: #fff;
background-color: #212529;
border-radius: 0.2rem;
}
.underline{
text-decoration: underline;
}
Related Articles:
- 2019/04/03 Details and summary
- 2019/04/03 Do not put TOC in Summary
- 2019/04/02 Reference to LaTeX math in ox-hugo