Answers
直接问一下 segmentfault.com 官方吧,他们这个回复就支持 Markdown。但是比较悲剧的是不支持@ <mark> (疑似未證實的原創研究) </mark> 。就改进啊。
少年特工喵组
answered 10 years, 10 months ago
google: web online markdown editor,太多了,比较有名的下面算一个
猫猫D尛猫
answered 10 years, 10 months ago
直接使用markdown来编辑,不是更好? https://github.com/jbt/markdown-editor
薛定谔的手残
answered 10 years, 10 months ago
中二晚期的七夜
answered 10 years, 10 months ago
建议直接找一个 markdown 编辑器来用。
如果要用所见即所得的编辑器写 markdown 你要保证它不会直接把你写的东西转成html。 然后把编辑器输入框里的 md 文本传给后端做解析转成html即可。www.szbcase.com www.chinazote.com www.benhuo.com www.szpeekban.com
凤凰院天真
answered 10 years, 10 months ago
有两个Javascript Library 你可以用来处理Mardown
markdown.js
https://github.com/mengfeng/zths/blob/master/js/markdown.js
to-markdown.js
https://github.com/mengfeng/zths/blob/master/js/to-markdown.js
类似的用法:
var htmltomarkdown=function(html){
//toMarkdown is defined in to-mardown.js
//console.log(html);
return toMarkdown(html);
};
var markdowntohtml=function(text){
//markdown is defined in markdown.js
//console.log(text);
var html=markdown.toHTML(text);
//console.log(html);
return html;
};
时十十十月
answered 10 years, 10 months ago