When using Markdown mode, I should be able to get the generated HTML from the entered markdown through API.
I whould expect such a function to be exported as public API in editor.markdown.getHtml().
Actual behavior.
The API which converts the editor markdown content to HTML, is not public. The markdown plugin registers an event listener for the contentChanged event and calls a private function which converts the input to HTML
Steps to reproduce the problem.
See my jsfiddle https://jsfiddle.net/970utj8f/. I would like to be able to get the generated HTML so it can be saved and eventually rendered from the backend. I could access the .fr-markdown-view element and get its innerHTML but I don't think this is the way it was intended to be used.
Expected behavior.
When using Markdown mode, I should be able to get the generated HTML from the entered markdown through API. I whould expect such a function to be exported as public API in
editor.markdown.getHtml()
.Actual behavior.
The API which converts the editor markdown content to HTML, is not public. The markdown plugin registers an event listener for the
contentChanged
event and calls a private function which converts the input to HTMLSteps to reproduce the problem.
See my jsfiddle https://jsfiddle.net/970utj8f/. I would like to be able to get the generated HTML so it can be saved and eventually rendered from the backend. I could access the
.fr-markdown-view
element and get itsinnerHTML
but I don't think this is the way it was intended to be used.Editor version.
4.0.6
OS.
Windows 10
Browser.
Chrome