[Userscript] Forum: IME2Furigana

I have noticed that you already found a way to inject Markdown-it plugins into Discourse through a userscript! That’s great! I think I will update IME2Furigana to use this method for a better integration with the other markdown rules. At least for furigana markup => ruby, this should automatically prevent any conversion inside of code blocks. I haven’t decided yet how I want to handle ruby => furigana markup.

The only disadvantage of injecting it as a rule instead of a preprocessing step is that markdown does not work inside of HTML tags. But I think this should be okay.

Test if your markdown-it-ruby userscript also works when saving the post: {振|}り{仮名|がな}.

EDIT: :frowning: I guess hacking the saving function is still necessary after all.