我有node.js
app,我希望允许我的用户用一点标记加强他们的讯息。 但只有一点。 我
- Sanitization
- Bold (**) and Italics (*)
- Links
更有甚者,情况也是如此。 但我可能更晚地需要扩大信息发布系统。
页: 1 只有后者得到了抵偿,但所有这些都无法想象。 <代码>PageDown是最有希望的,但我无法生产<代码><p>围绕产出。
是否有其他办法使我更能控制?
我有node.js
app,我希望允许我的用户用一点标记加强他们的讯息。 但只有一点。 我
更有甚者,情况也是如此。 但我可能更晚地需要扩大信息发布系统。
页: 1 只有后者得到了抵偿,但所有这些都无法想象。 <代码>PageDown是最有希望的,但我无法生产<代码><p>围绕产出。
是否有其他办法使我更能控制?
有一个相当新的转换器,支持直接使用弹性体。 我想这是你们需要的:。
查阅项目。 您可使用<条码>InlineCompiler,该编码基本上符合您的需要(假设您也需要一些基本决定因素,如<条码>和p>;和&
。
你们可以使用快递/Handlebars的助手,例如:
var exphbs = require( express-handlebars );
var rho = require( rho );
var hbs = exphbs.create({
helpers: {
mdToHtml: function(options) {
return new hbs.handlebars.SafeString(
rho.toInlineHtml(options.fn(this))
);
}
}
});
之后改为“JSON”内部模板中的标记,例如
<div class="col-xs-12">
<p class="body">
{{#mdToHtml}}{{message.body}}{{/mdToHtml}}
</p>
</div>
where message
is some JSON you have provided to the template.
I am using the Symfony CMS and it uses Markdown for article writing. I need to do a blockquote of a quote from Benjamin Franklin and would like to have the quote followed by a citation beneath it, but ...
Related: How to store lightweight formatting (Textile, Markdown) in database? I want to store comment formatting in some markup language in our DB. However, we want to allow multiple formatting ...
I m working on a fairly large CMS-like app that includes a forum, wiki pages, etc. What whould you chose between Markdown and HTML? I m concerned about usability and the fact non-techie people will ...
I m using http://michelf.com/projects/php-markdown/ for my markdown library and my question is that if i edit and remove the functionality would this work Because the users that i have, are ...
For my application I customized slightly the way WMD behaves so when user enters empty lines, these are reflected in HTML output as <br /> s. Now I came to a point when I should store it ...
How can I change the default behavior in the markdown filter so that it transforms a newline to a br tag?
I am looking to set up an internal wiki for our development/design team. The key feature I am looking for is a very simple editor with revision history. Ideally, the uber-simple markup system ...
Is there an extra for Python Markdown that supports Markdown inside HTML block elements, e.g. div, p i.e. is there a way to convert this: <div id="content"> [Google](http://www.google.com) ...