WMD Markdown 显示在预览 div 中
我刚刚在 ASP.NET 应用程序中为我的编辑器实现了 WMD。问题是预览不显示格式化的 HTML,而是显示 Markdown。因此,如果我使用(由双星 Markdown 语法包围),当我期望获得它的 html 版本时,我会在预览中得到准确的结果。
如果我在文本区域中明确输入 html 标签,预览就可以了。
我究竟做错了什么?
I have just implemented WMD for my editor in an ASP.NET app. The problem is the preview doesn't show the formatted HTML but the markdown instead. So if I use the (surrounded by double stars markdown syntax) I get exactly that in the preview, when I was expecting to get the html version of it.
If I explicitly enter the html tags in the textarea the preview is fine.
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在配置部分(位置取决于您使用的 WMD 版本)有一个
output 属性,可能设置为 markdown 或类似的值。
将其更改为
输出:“HTML”
In the configuration section (location depends on the WMD version you use) there is a
output attribute, which is probably set to markdown or something similar.
Change it to
output:"HTML"