commonmark / commonmark-spec

CommonMark spec, with reference implementations in C and JavaScript
http://commonmark.org
Other
4.88k stars 317 forks source link

Feature request: Furigana support #432

Open rainbyte opened 7 years ago

rainbyte commented 7 years ago

It would be really useful to provide support for Furigana (a.k.a. html ruby notation).

When using anki I can write something like this:

漢[かん] 字[じ]

Some libraries (ex. showdown-kanji) provide this syntax:

{漢}(かん){字}(じ)

Denden markdown (a Japanese online editor) uses this:

{漢字|かん|じ}

And this is the HTML code which should be produced:

<ruby>漢<rt>かん</rt>字<rt>じ</rt></ruby>

Thanks in advance!

Crissov commented 5 years ago

Just for the record, related discussion on Discourse: Proper ruby text (<rb>) syntax support in Markdown