使用wmd-new提交减价 [英] Using wmd-new to submit markdown

查看:96
本文介绍了使用wmd-new提交减价的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人使用Google代码上发布的 wmd-new编辑器 ?

Does anyone use the wmd-new editor posted on google code?

我已经安装了编辑器,并使其能够正常工作.我以为编辑者会提交原始的降价促销.令我惊讶的是,它提交了HTML.这是一个问题,因为我需要存储文本的降价版本.

I've installed the editor and got it to work correctly. I thought the editor would submit raw markdown. To my surprise it submits HTML. This is a problem because I need to store a markdown version of the text.

另一个问题是,如果发生验证错误,该表单将重新加载HTML,而不是原始的markdown.这会让不熟悉HTML的用户感到困惑.

Another issue is, if there's a validation error, the form will reload with HTML instead of the original markdown. This would puzzle users unfamiliar with HTML.

有什么想法如何使它提交原始的markdown或HTML和markdown?

Any ideas how to get it to submit raw markdown, or HTML and markdown?

推荐答案

Per this answer, the option can be set below the text area using the following script:

<script type="text/javascript">

    wmd_options = {
        output: "Markdown"
    };

</script>

这篇关于使用wmd-new提交减价的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆