0.3.0 • Published 5 years ago

jsmd-parser v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

JSMD Parser

Mozilla's JSMD format standalone parser.

Usage

npm i jsmd-parser

Use parser:

const jsmd = require('jsmd-parser');

const chunks = jsmd.parse(`
%% markdown
# JSMD

JSMD is a text container created to mix JS, Markdown, LaTeX and any other
text format in one file. It's developed by Mozilla for
[Iodide](https://iodide-project.github.io) project.

%% js

console.log('This part of JS mixed with markdown');
`);

Method parse returns an array of Chunks. Each Chunk has properties type, flags, index, startLine, endLine and content.

License

MIT © Rumkin