voyager icon indicating copy to clipboard operation
voyager copied to clipboard

[Feature Request] Support for Ruby annotation

Open felixchiasson opened this issue 2 years ago • 2 comments

The recent Lemmy 0.18.1 update has introduced support for ruby annotation that allow users to, for example, post furigana text.

For example, the following markdown: {電車|でんしゃ}

Will appear as (imagine it’s furigana since I don’t think Github supports it)

でんしゃ 電車

see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ruby

felixchiasson avatar Jul 10 '23 02:07 felixchiasson

Would this work? https://github.com/laysent/remark-ruby

aeharding avatar Jul 10 '23 03:07 aeharding

I believe so. As far as implementation goes it’s perfect although I’m not sure that the additional bracket delimiter is the same as lemmy since Lemmy uses markdown-it-ruby and they don’t mention using []as delimiter for characters. Mind you I think the remark implementation is better and less annoying because even with html you have to use several tags for each kanji.

felixchiasson avatar Jul 10 '23 04:07 felixchiasson