- Expose MultiMarkdown to node.
Convert to HTMLConvert to ODFConvert to Text- Convert to Latex (TODO)
Extract metadata value(s)Extract metadata key(s)
npm install mmd
var mmd = require('mmd')
var html = mmd.convert('# Look Ma!')
This is a low-level, 1-to-1 match of the MultiMarkdown-4 API. As such, there are no convenience methods for metadata, nor any I/O concerns.
source
{String} The content of the markdownoptions
{Object}return
{String} The converted document
full
{Boolean} Whether to generate a full html document or not. Default isfalse
.format
{String} One of the supported formats (Default ishtml
):- html
- odf
- rtf
- text
- latex (TODO...not supported atm)
source
{String} The content of the markdownkey
{String} The metadata key to returnreturn
{Array} The value(s) mapped to the metadata key.- If the key does not exist, an empty array
[]
is returned.
- If the key does not exist, an empty array
source
{String} The content of the markdownreturn
{Array} The keys for any metadata in the document.- If the document does not contain metadata, an empty array
[]
is returned.
- If the document does not contain metadata, an empty array
4.4.2
initial release with v4.4.2 of MultiMarkdown-4 bindings4.4.3
minor notes