If the markdown editor is used, the data written to the database is in html or markdown format.

Source: Internet
Author: User
If you want to save html to the database, you cannot edit the article again. If you want to store markdown, you must format the article when displaying it, if the markdown resolution used by the backend is different from the markdown editor standard, the backend needs to be different...
  1. If you store html in the database, you cannot edit the article again.

  2. If you store markdown

    • When the document is displayed, the document format must be processed. If the markdown resolution used by the backend is different from the markdown editor standard, problems may occur.

    • The backend needs to distinguish between articles published by the Rich Text Editor and articles published by the markdown editor, and add additional judgment for no reason.

Reply content:
  1. If you store html in the database, you cannot edit the article again.

  2. If you store markdown

    • When the document is displayed, the document format must be processed. If the markdown resolution used by the backend is different from the markdown editor standard, problems may occur.

    • The backend needs to distinguish between articles published by the Rich Text Editor and articles published by the markdown editor, and add additional judgment for no reason.

Save the markdown format.
Why are you not using the same standard resolution?

Why should I determine which editor was edited and released? Markdown does not parse HTML content.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.