Home  >  Q&A  >  body text

java - 怎样在页面上使用markdown编辑器

网上一些教程都在说语法,对于安装这块也只是在本地电脑上,如何把markdown编辑器植入WEB应用中没有相关教程。
我现在的需求很简单,希望在自己的网站上使用markdown编辑器,请问大家该如何实现呢?

高洛峰高洛峰2765 days ago404

reply all(4)I'll reply

  • 高洛峰

    高洛峰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/

    reply
    0
  • 怪我咯

    怪我咯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.

    reply
    0
  • 高洛峰

    高洛峰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

    reply
    0
  • PHP中文网

    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

    reply
    0
  • Cancelreply