Instant Markdown editing support #133
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For our rendered Markdown I want to enable editing the markdown file in the browser.
By this i mean, that the markdown source of the html needs to be there in the dom and can be manipulated.
This is all client side and should allow saving the edited markdown source, simply by saving the file by now.
It is not the intention to directly interact with source data in a database.
The interface should be minimalistic but provide a maximum of control:
You click on the content and will be provided with an additional multiline inputfield with the markdown source.
You can now change the source with the original section above in direct comparison.
To the right of the input section you get the actions: apply, reset, ... whatever we need.
If any section of the markdown was changed there should be a floating headline:
The headline shows the count of sections changed
The headline should also have a save button, to store the markdown document
All this should be an addon to the page as rendered for reading only. We do not want to duplicate that. But extend the page simply by loading a second javascript library, that loads the editing functionalities.