Open dilippitchika opened 2 years ago
@dilippitchika I think this is the duplicate of #2047. Since we have to have a widget to render markdown.
@somangshu this is a different issue, today the rte widget output RTE1.text is in a html format. When devs are selecting input type as markdown in the RTE widget they expect the output also to be markdown and not html. They are confused why they can provide input using a markdown but the widget doesn't give the output in this format.
can confirm this, it is confusing to select markdown in input fields and get HTML as an output!
This feature is still not baked into the core package as pointed out in https://github.com/tinymce/tinymce/issues/3467
I see in the same thread that there is a workaround
The textpattern plugin allows someone to type in Markdown and the editor will convert it to HTML on the fly.
Hey folks, you can use a custom JS library for now https://github.com/mixmark-io/turndown and convert RTE output to markdown
Is there an existing issue for this?
Summary
Devs are looking for a way to get the data in the same format as it's inserted by the user. This will make the behavior consistent.
Why should this be worked on?
Today RTE outputs text in html even when the dev selects markdown as input type.
This leads to them having to convert it by themselves, if they want to store it in markdown in their database.