Hello,
I am working on a Plugin for Obsidian (a markdown editor) and struggling to implement a translation feature. Also I am mostly limited to using editor extension for the desired effect.
Is it possible to achieve the following effect using CodeMirror editor extensions: Every occurrence of a block of text, marked by specific start and end characters, is translated into another language and then displayed in the view. If the text displayed in the view is edited, it should be written back to the document state in the original language.
I don’t want to worry about how I will translate the text yet. I just need a method to have different, but connected, text between the editor view and the document state.