w-md2html
v1.0.27
Published
A tool for Markdown to Html.
Maintainers
Readme
w-md2html
A tool for Markdown to Html.
Documentation
To view documentation or get support, visit docs.
Example
To view some examples for more understanding, visit examples:
convertCoordinate: ex-md2html.html [source code]
Installation
Using npm(ES6 module):
npm i w-md2htmlExample:
Link: [dev source code]
import w from 'wsemi'
import WMd2html from './src/WMd2html.mjs'
//import WMd2html from 'w-md2html/src/WMd2html.mjs'
//import WMd2html from 'w-md2html'
async function test() {
let fpIn = `./test/report.md`
let fpOut = `./test/report.html`
let opt = {
imgWidthMax: '500px',
funProcFpOut: (msg) => {
console.log('msg', msg)
return msg.fpOut
},
}
let r = await WMd2html(fpIn, fpOut, opt)
console.log(r)
// => ok
w.fsDeleteFile(fpOut)
}
test()
.catch((err) => {
console.log('catch', err)
})