Hacker News new | ask | show | jobs
by NiklasBegley 1157 days ago
Congrats on the launch! I'm curious how you manage syncing the changes from the WYSIWYG editor back to the repo?

If you have two editors, one editing raw Markdown, and another one comes along with the WYSIWYG editor and makes a change in a new commit, how is that change handled? Is the original formatting preserved, with only the new changes injected into the document?

I ask since I've thought about this a lot for my own company[0], and this is a surprisingly tricky thing to pull off.

You usually end up losing all formatting information once a WYSIWYG editor comes in unless you do something clever, leading to very strange diffs.

[0]: https://www.doctave.com