Does mdxjs support ruby tag #2191
-
Does mdxjs support ruby tag, ex: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, using JSX. <ruby>
漢 <rp>(</rp><rt>kan</rt><rp>)</rp>
字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby> and pasting it into the MDX playground https://mdxjs.com/playground/ Neither commonmark nor GFM have shorthand syntax for ruby text. |
Beta Was this translation helpful? Give feedback.
Yes, using JSX.
Taking the example from MDN https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rt
and pasting it into the MDX playground https://mdxjs.com/playground/
It works fine.
Neither commonmark nor GFM have shorthand syntax for ruby text.
There has been some discussion of adding some here: https://talk.commonmark.org/t/proper-ruby-text-rb-syntax-support-in-markdown/2279 but it has not reached consensus.
You are welcome to contribute to the discussion, and if/when it is standardized in commonmark, remark and mdx would add it.