flav-md
markdown parser with css style
About
How to use
install
You can install via npm with
npm install flav-md
import flav-md
load from file
CommonJS
const flavmd = require('flav-md');
const result = flavmd
.createFlavMd()
.readMdFile('example.md')
.readCssFile('example.css')
.build();
ES6 or TypeScript
import {createFlavMd} from 'flav-md';
const result = createFlavMd()
.readMdFile('example.md')
.readCssFile('example.css')
.build();
load from text
CommonJS
const flavmd = require('flav-md');
const result = flavmd
.createFlavMd()
.readMdText('# hogehoge')
.readCssText('.flav-md-h1 {color: red;}')
.build();
ES6 or TypeScript
import {createFlavMd} from 'flav-md';
const result = createFlavMd()
.readMdText('# hogehoge')
.readCssText('.flav-md-h1 {color: red;}')
.build();