Rendering inline markdown syntax on keypress (or automatically?)

Hi, I’m currently trying to think about how to implement a plugin that would render any markdown syntax that has been typed (in the rich text editor) upon some yet-to-be-defined key combination.

My initial thought is to have a new inline node named something like ‘inline-markdown’ that is created upon typing some Markdown symbol like “*”, while the plugin keeps track of these nodes such that when the key combination is pressed, it would use a MarkdownParser instance to parse the content of these inline-markdown nodes, and replace the content accordingly.

My original intent was to have automatic inline markdown rendering but realized there would be complications with nested formatting, so I was wondering if this strategy for command-activated markdown rendering is viable? And if someone has an idea for how automatic rendering would be possible, any tips for that? Thank you.

1 Like