jgm/pandoc-types

Emph with custom class

Closed this issue · 1 comments

srid commented

Can Emph be made take a custom Attr?

I would like this capability in order to define FontAwesome icons when using Semantic UI which requires the HTML tag to be <i> (rather than anything else, say <span>).

In other words, can the following be generated from a Pandoc AST?

<i class="icons tag" />
srid commented

Found a workaround with direct font-awesome style.