网上一些教程都在说语法,对于安装这块也只是在本地电脑上,如何把markdown编辑器植入WEB应用中没有相关教程。
我现在的需求很简单,希望在自己的网站上使用markdown编辑器,请问大家该如何实现呢?
高洛峰2017-04-17 11:56:22
Editor section. You probably need to configure syntax highlighting yourself.
It is recommended to use github's markdownAPI later, which is very convenient.
You don’t need your own server, it will automatically render it into HTML for you
https://developer.github.com/v3/markdown/
怪我咯2017-04-17 11:56:22
There is a pagedown component, which is javascript. You can convert user output markdown to html in real time on the page, similar to the effect of Mou on Mac: the screen is divided into two halves, one half is the Mardkown editor, and the other half is the effects browser .
I think this is what you want.
I have done one before, you can refer to my code directly.
高洛峰2017-04-17 11:56:22
The
markdown
editor translates the markdown
syntax into html
. In the past, markdown-js was used to implement a visible and available editor similar to SF. You can try it.
This is a similar question
PHP中文网2017-04-17 11:56:22
Nowadays, there are many open source markdown editors in China, including thinker-md with OSC and the rebellious editor.md. They are very good and easy to transplant. There is no difference from the transplantation method of ordinary rich text editors
thinker- md
editor.md