Skip to content
Discussion options

You must be logged in to vote

Does mdxjs support ruby tag

Yes, using JSX.
Taking the example from MDN https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rt

<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/
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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tienlx97
Comment options

Answer selected by tienlx97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants