Really, really impressive @ChezFrancois! This comes very close to a WYSIWYG - thank you for putting this together.
A few items that would make this even more amazing (although I’m not sure if they’re possible) include:
- Handling pipe aliases (as noted above) - e.g. [[page^^block|alias]] should just show the alias text as the link
- Handling escape characters: e.g. typing \[some text\] should result in [some text] being displayed (ie. not displaying the escape character until cursor is active in the location or at least on the line)
- Related: typing “[some text]” (without the quotes) in Typora simply displays [some text] without any linking - which is what I’d expect since [some text] would not be considered a markdown link as it doesn’t have the trailing (url). However, in Obsidian your css removes the brackets and treats it as if it were a link.
- Embed links (e.g. Youtube embed code) works fine in Typora but not in Obsidian (in edit mode).
Lastly, I’m not sure if this is do-able with css, but it would be superb if there was a way to display web images in Edit mode: e.g. .
Thanks again for putting together this incredibly helpful code!