First of all: this is not the solution I want, because it’s basically a workaround, not “the proper way” imho.
[markup.goldmark.renderer]
unsafe = false
Right now I have an author blurb on my site like the following:
<span class="fn n">
<a class="url" href="http://kollitsch.de/">
<span class="given-name">Patrick</span>
<span class="family-name">Kollitsch</span>
</a>
</span>, Dipl. Ing. (FH), hat die ersten
<span class="is-datediff" data-from="1975-07-05"></span>
Tage seines Lebens hinter sich und die letzten
<span class="is-datediff" data-from="2005-01-08"></span>
Tage davon in
<span class="adr country-name">Thailand</span>
auf Koh Samui, einer kleinen aber ausreichend großen Insel im
Golf von Thailand, zu-, ge-, über-, be- und verbracht.
Ignore the .is-datediff
parts, that I will solve via shortcodes, but the other classes are (proper) Microformats for persons and addresses that I would like to implement and output via Markdown.
I know of Goldmarks ways to add attributes, but how about inline tags? There is no way to add a span in markdown. What might be a good way to add these classes without having a tag that has a semantic meaning (strong/hx/em/whatever) so I can add arbitrary classes to parts of the text?
Worst case is always to add shortcodes for all Microformat parts I guess, but that seems a little bit like overkill.
And as I wrote at the start - this is more a topic about how to solve this issue in general, not the quick and dirty way