Oh, and the reference to [1] that I forgot to paste..

[1]: https://github.com/kaushalmodi/ox-hugo/blob/a486141e4e2c3f9f67e799e20af150611d77f850/ox-hugo.el#L535-L542

On Wed, Sep 13, 2017 at 10:03 AM Kaushal Modi <kaushal.modi@gmail.com> wrote:
On Wed, Sep 13, 2017 at 9:23 AM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

The "kbd" macro focuses on normalizing keybinding during export. For
example, during Texinfo export, {{{kbd(v SPC)}}} becomes

  @kbd{v @key{SPC}}

whereas in another back-end, it becomes

  v <SPC>

Can we have {{{kbd(v SPC)}}} export to below for HTML?

<kbd>v <span class="key">SPC</span></kbd>

It will be tremendously useful for blog posts. At the moment, I use this hack[1] in ox-hugo.el.
--

Kaushal Modi