-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version 2.0 is not published #3
Comments
use marked please. marked has merged renderer feature. |
@lepture Could you tell me how to use custom renderer method in marked? Like var markd = require('marked');
var renderer = new markd.Renderer();
renderer.blockcode = function(code, lang) {
return 'test blockcode renderer method';
};
console.log(markd('`````html\n<div></div>`````', {
gfm: true,
tables: true,
breaks: false,
pedantic: true,
sanitize: false,
smartLists: true,
renderer: renderer
})); It not works. |
@minwe use |
@lepture I just want to know how to get For example, I write markdown like this: var mdString = '`````html<div>some html code</div>`````';
var marked = require('marked');
var renderer = new markd.Renderer();
renderer.code = function(code, lang) {
console.log(lang);
return 'test blockcode renderer method';
};
console.log(marked(mdString, {
gfm: true,
tables: true,
breaks: false,
pedantic: true,
sanitize: false,
smartLists: true,
renderer: renderer
})); In Nico, Could you tell me what is the key point that you got it in Nico. |
@lepture I found it in Nico's source code.
Sorry for trouble you. Thanks. |
https://www.npmjs.org/package/markit
I'm wondering why
highlight
is not working, then I got this.The text was updated successfully, but these errors were encountered: