Permalink
Browse files

Switch the default value of org-hugo-use-code-for-kbd to nil

To match with default Org markup
  • Loading branch information...
kaushalmodi committed Sep 27, 2017
1 parent f1466e2 commit 88ba15ae9bc809b0983315446c88fecfda3534e5
@@ -17,11 +17,11 @@ Org | Markdown
`*bold*` | `**bold**`
`/italics/` | `_italics_`
`=monospace=` | `` `monospace` ``
`~key-binding~` | `` `key-binding` ``
| - if `org-hugo-use-code-for-kbd` is nil [default]
`~key-binding~` | `<kbd>key-binding</kbd>`
| - if `org-hugo-use-code-for-kbd` is non-nil [default]
| - if `org-hugo-use-code-for-kbd` is non-nil
| - Requires **CSS** to render the `<kbd>` tag as something special.
`~key-binding~` | `` `key-binding` ``
| - if `org-hugo-use-code-for-kbd` is nil
`+strike-through+` | `~~strike-through~~`
`_underline_` | `<span class = "underline">underline</span>`
| - Requires **CSS** to render this `underline` class as an underline.
View
@@ -698,11 +698,11 @@ heading and how it exports to Markdown in [[https://raw.githubusercontent.com/ka
| =*bold*= | =**bold**= |
| =/italics/= | =_italics_= |
| ==monospace== | =`monospace`= |
| =~key-binding~= | =`key-binding`= |
| | - if =org-hugo-use-code-for-kbd= is nil [default] |
| =~key-binding~= | =<kbd>key-binding</kbd>= |
| | - if =org-hugo-use-code-for-kbd= is non-nil [default] |
| | - if =org-hugo-use-code-for-kbd= is non-nil |
| | - Requires *CSS* to render the =<kbd>= tag as something special. |
| =~key-binding~= | =`key-binding`= |
| | - if =org-hugo-use-code-for-kbd= is nil |
| =+strike-through+= | =~~strike-through~~= |
| =_underline_= | =<span class = "underline">underline</span>= |
| | - Requires *CSS* to render this =underline= class as an underline. |
View
@@ -378,7 +378,7 @@ Org Verse block or Blackfriday hardLineBreak extension."
:type 'boolean
:safe #'booleanp)
(defcustom org-hugo-use-code-for-kbd t
(defcustom org-hugo-use-code-for-kbd nil
"When non-nil, ~text~ will translate to <kbd>text</kbd>."
:group 'org-export-hugo
:type 'boolean
@@ -508,11 +508,11 @@ the exported =.md= files.
| =*bold*= | =**bold**= | *bold* |
| =/italics/= | =_italics_= | /italics/ |
| ==monospace== | =`monospace`= | =monospace= |
| =~key-binding~= | =<kbd>key-binding</kbd>= | ~key-binding~ |
| | - if =org-hugo-use-code-for-kbd= is non-nil [default] | |
| =~key-binding~= | =`key-binding`= | ~key-binding~ |
| | - if =org-hugo-use-code-for-kbd= is nil [default] | |
| =~key-binding~= | =<kbd>key-binding</kbd>= | |
| | - if =org-hugo-use-code-for-kbd= is non-nil | |
| | - Requires *CSS* to render the =<kbd>= tag as something special. | |
| =~key-binding~= | =`key-binding`= | |
| | - if =org-hugo-use-code-for-kbd= is nil | |
| =+strike-through+= | =~~strike-through~~= | +strike-through+ |
| =_underline_= | =<span class = "underline">underline</span>= | _underline_ |
| | - Requires *CSS* to render this =underline= class as an underline. | |
@@ -523,8 +523,8 @@ the exported =.md= files.
:EXPORT_FILE_NAME: kbd-tag-default
:EXPORT_DATE: 2017-07-31
:END:
This is the default behavior. So =~C-h f~= will show up as =<kbd>C-h
f</kbd>=.
This is the default behavior. So =~C-h f~= will show up as =`C-h f`=
and then =<code>C-h f</code>= in the final Hugo generated HTML.
Example:
- Few of Emacs help keybindings: ~C-h f~, ~C-h v~
@@ -13,11 +13,11 @@ Org | Markdown
`*bold*` | `**bold**` | **bold**
`/italics/` | `_italics_` | _italics_
`=monospace=` | `` `monospace` `` | `monospace`
`~key-binding~` | `<kbd>key-binding</kbd>` | <kbd>key-binding</kbd>
| - if `org-hugo-use-code-for-kbd` is non-nil [default] |
`~key-binding~` | `` `key-binding` `` | `key-binding`
| - if `org-hugo-use-code-for-kbd` is nil [default] |
`~key-binding~` | `<kbd>key-binding</kbd>` |
| - if `org-hugo-use-code-for-kbd` is non-nil |
| - Requires **CSS** to render the `<kbd>` tag as something special. |
`~key-binding~` | `` `key-binding` `` |
| - if `org-hugo-use-code-for-kbd` is nil |
`+strike-through+` | `~~strike-through~~` | ~~strike-through~~
`_underline_` | `<span class = "underline">underline</span>` | <span class="underline">underline</span>
| - Requires **CSS** to render this `underline` class as an underline. |
@@ -5,9 +5,9 @@ tags = ["formatting"]
draft = false
+++
This is the default behavior. So `~C-h f~` will show up as `<kbd>C-h
f</kbd>`.
This is the default behavior. So `~C-h f~` will show up as `` `C-h f` ``
and then `<code>C-h f</code>` in the final Hugo generated HTML.
Example:
- Few of Emacs help keybindings: <kbd>C-h f</kbd>, <kbd>C-h v</kbd>
- Few of Emacs help keybindings: `C-h f`, `C-h v`

0 comments on commit 88ba15a

Please sign in to comment.