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
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