I moved away from building my own #Markdown parser. Now I am trying to use the package called `swift-markdown`.
It's certainly more convenient because it takes care of all the edge-cases.
Now I just need to think about how I am going to hide and show the Markdown syntax when selecting some text with styling applied.
I tried cheating a bit by making the syntax a size of 1, so that the characters are so small they become invisible. This worked, but if having double or triple asterisks (** or ***), then it will obviously create more spacing when hidden, because they are still there, just a very small size.
I can definitely understand why there are so few editors that support live-preview the way #Obsidian does it... #dev
Login to reply