jacobwindsor / MetabMaster

Learn about metabolic pathways using Pvjs and interactive descriptions
1 stars 0 forks source link

WYSIWYG to Markdown #18

Open jacobwindsor opened 7 years ago

jacobwindsor commented 7 years ago

It's feasible to still use Kaavio-showdown and have a WYSIWYG editor. Something like StackEdit (NPM repo). This editor converts everything to Markdown which is then passed through Kaavio-showdown.

This provides one obvious benefit easier editing. You can add buttons for zoomOn, toggleHighlight, hide, show etc.

It also provides one less obvious benefit - easy state tracking. As the author adds interactive links they should build up from each other. So, if the first link specifies toggleHighlight and the second link specifies zoomOn - clicking the second link only should both toggleHighlight and zoomOn. With a WYSIWYG editor, the author wouldn't have to worry about this. The editor could automatically pass in the tracked operations into the markdown.