Skip to content

sourcejs/sourcejs-example-md-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example of Custom Markdown Renderer

Gitter chat

Example plugin with custom Markdown renderer for SourceJS.

Quick start

Install the plugin in sourcejs/user folder:

npm i sourcejs-example-md-extension --save

Then prepare markdown options sourcejs/user/options.js:

module.exports = {
    core: {
        processMd: {
            marked: {
                renderer: require('sourcejs-example-md-extension/custom-renderer')
            }
        }
        ...
    }
    ...
};

If you want to add new language renderer only, add languageRenderers option:

module.exports = {
    core: {
        processMd: {
            languageRenderers: {
                jsx: require('sourcejs-example-md-extension/lang-jsx')
            }
        }
        ...
    }
    ...
};

Compatible with SourceJS 0.5.4+.

About

Example plugin with custom Markdown renderer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published