appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.76k stars 3.63k forks source link

[Feature]: Support RTE.text output in markdown format #13785

Open dilippitchika opened 2 years ago

dilippitchika commented 2 years ago

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.

somangshu commented 2 years ago

@dilippitchika I think this is the duplicate of #2047. Since we have to have a widget to render markdown.

dilippitchika commented 2 years ago

@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.

anasfik commented 1 year ago

can confirm this, it is confusing to select markdown in input fields and get HTML as an output!

somangshu commented 1 year ago

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.

dilippitchika commented 1 year ago

Hey folks, you can use a custom JS library for now https://github.com/mixmark-io/turndown and convert RTE output to markdown