WMD Markdown 显示在预览 div 中

发布于 2024-08-02 06:42:52 字数 187 浏览 10 评论 0原文

我刚刚在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅紫色的梦幻 2024-08-09 06:42:52

在配置部分(位置取决于您使用的 WMD 版本)有一个
output 属性,可能设置为 ma​​rkdown 或类似的值。
将其更改为

输出:“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"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文