nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
http://ui.toast.com/tui-editor
MIT License
17.23k stars 1.76k forks source link

Custom renderer with simple string in and out #2920

Open kennytv opened 1 year ago

kennytv commented 1 year ago

Version

3.2.1

Development Environment

Chrome, Windows, in a vuejs 3 project with a custom wrapper

Current Behavior

The customHTMLRenderer requires a complex, very specific AST implementation that is not easy to do and makes the project become very dependant on this editor and implementation.

Expected Behavior

It would be nice if it were somehow possible to provide a simple function that takes a markdown string and outputs an html string to the tui editor/viewer, so that other/custom markdown renderers can be used and exchanged easily. Losing certain features like automatic scrolling of the vertical side-by-side preview and having performance hits when using such simple transformers would be fine

jwlee1108 commented 1 year ago

Thank you for the issue! we'll discuss over this issue later.