提示:我已读过问题#1 https://stackoverflow.com/questions/12840132/integrated-markdown-wysiwyg-text-editor and 问题2 https://stackoverflow.com/questions/4843649/wysiwyg-edit-with-markdown-output/5252552#5252552,但只有 CK Editor 和 Aloha 是解决方案。两个不错的项目,但对于我的小要求来说非常大。
非常感谢您抽出时间。
我找到了一个解决方案showdown https://github.com/coreyti/showdown and 降价 http://domchristie.github.io/to-markdown/,例如结果和他的来源。提示是,我添加了一个 css 语句style="display: none;",隐藏带有源的文本区域,而不是更多。源文件中的行 https://github.com/bueltge/Notes/blob/master/lib/package/core.php#L160