Package Exports
- markdown-to-bbcode
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (markdown-to-bbcode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
markdown-to-bbcode
BBCode renderer for commonmark.js
Usage
You'll need commonmark.js and markdown-to-bbcode.
var reader = new commonmark.Parser();
var parsed = reader.parse("BBCODE");
var writer = new markdown_to_bbcode.BBCodeRenderer();
var result = writer.render(parsed);importing the module
import markdown_to_bbcode from 'markdown-to-bbcode';
including the bundle
<script src="markdown-to-bbcode.js"></script>