Recently I’ve seen some posts in the WaniKani Community that included furigana over the kanji. Is this something I can do with markdown?
If so, yes.
Ah my mistake. I corrected my original post. Do I have to do it with markdown tags or is there an editing shortcut, like there is for lists and some other formatting?
You can use the
<ruby> tag -
<ruby>何<rt>なに</rt></ruby> becomes 何.
And for anyone who’s wondering about rendaku because of the title, your IME can convert だくてん into ゛, which you can then tack onto any character you like - like 何゛
As Kazzeon says, the hiragana above kanji are called furigana. Rendaku is something else entirely…
You can add furigana using HTML tags like so:
Bit of a hassle, but it works.
The easiest way is by using this script!
If you don’t care about fallback to plain text,
<rt> is the way.
<rp> is the tag for hidden brackets, and IME2Furigana simplifies that process.
I sometimes don’t use auto-insert Furigana, just wanting a better syntax, so I made an edit to the script.
I don’t know about that も゛
I don’t think you need to use the
rp tag since
ruby has been supported by all major browsers for over 10 years.
Fun fact: I built a Discourse plugin that reused some open source markdown to allow for much easier syntax instead of HTML. But since it has to be installed by WaniKani server side it requires their permission and time, and in the end they didn’t end up installing it.
It’s actually used here in Discourse, on searching, marking as answer, and new-line internal links. Probably any time with de-HTML, like innerText.