API - Lop-Language/lop GitHub Wiki
You can use the API to parse lop files right from your node module.
Note: lop v1.0.4+ is required!
First, install lop for your node module;
npm install lop-language
Next, require lop in your module.
var lop = require('lop-language')
Now, you can parse lop using the following methods;
// Returns parsed html code read from the file.
lop.toHtml('path/to/file.lop')
// Returns parsed html code
lop.toHtmlCode(`
text>
Hello, World!
<<
`)
// Returns parsed markdown code read from the file.
lop.toMarkdown('path/to/file.lop')
// Returns parsed markdown code
lop.toMarkdownCode(`
text>
Hello, World!
<<
`)