Chunhui Ouyang
Chunhui Ouyang
You can check the official documentation for such an editor / parser. See if it can be used and more suitable for application, but tui.editor needs to input a DOM...
The official document of tui.editor is as follows: https://nhn.github.io/tui.editor/latest/
In fact, it can be introduced by NPM or yarn's nodejs package management tool, the address is: ``` node_modules/@toast-ui/editor/dist/toastui-editor-viewer ```
``` const viewer = new Viewer({ el: document.querySelector('#viewer'), height: '600px', initialValue: '# hello' }); viewer.getHtml(); ``` It's just an example from the official website that parses the markdown syntax of...
``` "dependencies": { "@toast-ui/editor": "^2.0.1", "@toast-ui/editor-plugin-chart": "^1.0.0", "@toast-ui/editor-plugin-code-syntax-highlight": "^1.0.0", "@toast-ui/editor-plugin-color-syntax": "^1.0.0", "@toast-ui/editor-plugin-table-merged-cell": "^1.0.0", "@toast-ui/editor-plugin-uml": "^1.0.0", "codemirror": "^5.52.2", "eve": "^0.5.4", "highlight.js": "^9.18.1", "jquery": "^3.4.1", "katex": "^0.11.1", "markdown-it": "^10.0.0", "squire-rte": "^1.9.0", "to-mark":...
Of course, I'm just suggesting.
In general, I use the following code to install: ``` npm install @toast-ui/editor ``` or ``` yarn add @toast-ui/editor ``` The relevant links are as follows: https://nhn.github.io/tui.editor/latest/#-install
The official website is as follows: https://ui.toast.com/tui-editor/ The official website documents are as follows: https://nhn.github.io/tui.editor/latest/
Thanks, because I chose WP RMD when I developed it, I know it is an excellent markdown renderer!
What do you want to do with this extension syntax