[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [RFC] New "kbd" macro?

From: Kaushal Modi
Subject: Re: [O] [RFC] New "kbd" macro?
Date: Wed, 13 Sep 2017 14:05:41 +0000

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 <address@hidden> wrote:
On Wed, Sep 13, 2017 at 9:23 AM Nicolas Goaziou <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]