Home  >  Article  >  Backend Development  >  javascript - Now the project has a requirement for a question function similar to segmentfault

javascript - Now the project has a requirement for a question function similar to segmentfault

WBOY
WBOYOriginal
2016-08-04 09:19:29989browse

The question is written on the left and displayed on the right, and it must support code highlighting
I don’t know what front-end framework to use. It can be said to be the complete version of segmentfault questioning function

Reply content:

The question is written on the left and displayed on the right, and it must support code highlighting
I don’t know what front-end framework to use. It can be said to be the complete version of segmentfault questioning function

SegmentFault’s Markdown parser HyperDown.

Just find a library that can parse markdown

The editor used by SF is Bach's Editor
SF's markdown parsing, the JavaScript version is used when editing, and the PHP version is used when viewing Q&A

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn