Markdown Furigana to HTML
++ Welcome to Elnu's Markdown Furigana to HTML converter utility. + This converter uses the following syntax, which is a custom and unofficial extension to Markdown: +
+
+
+ [振]{ふ}り[仮]{が}[名]{な}
+ ⟶
+ 振り仮名
+
+
How does it work?
+This syntax gets rendered to HTML as:
+
+ <span lang="ja">
+ <ruby>振<rp>(</rp><rt>ふ</rt><rp>)</rp></ruby>り
+ <ruby>仮<rp>(</rp><rt>が</rt><rp>)</rp></ruby>
+ <ruby>名<rp>(</rp><rt>な</rt><rp>)</rp></ruby>
+ </span>
+
-
+
-
+
<rp>(</rp>
and<rp>)</rp>
+ ruby fallback parentheses tags + are used to wrap furigana text with parentheses on legacy browsers that don't support<ruby>
. +
+ -
+ Most browsers default to displaying Chinese character variants rather than Japanese.
+ By wrapping the ruby text in
<span lang="ja">
, we + can ensure that the Japanese variants will always be used, if available. +
+
+ For more information on this syntax, see + my blog post here + on creating a parser regular expression and integrating it into the Hugo static site generator. +
++ + +
+