sourcejs-example-md-extension
v0.1.0
Published
Example plugin with custom Markdown renderer.
Downloads
3
Readme
Example of Custom Markdown Renderer
Example plugin with custom Markdown renderer for SourceJS.
Quick start
Install the plugin in sourcejs/user
folder:
npm i sourcejs-example-md-extension --save
Prepare markdown options sourcejs/user/options.js
:
module.exports = {
core: {
processMd: {
marked: {
renderer: require('sourcejs-example-md-extension/custom-renderer')
}
}
...
}
...
};
Or if you want to add new language renderer only:
module.exports = {
core: {
processMd: {
languageRenderers: {
jsx: require('sourcejs-example-md-extension/lang-jsx')
}
}
...
}
...
};