12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import {compile} from './lib/compile.js'
- import {parse} from './lib/parse.js'
- import {postprocess} from './lib/postprocess.js'
- import {preprocess} from './lib/preprocess.js'
- export {compile} from './lib/compile.js'
- export {parse} from './lib/parse.js'
- export {postprocess} from './lib/postprocess.js'
- export {preprocess} from './lib/preprocess.js'
- export function micromark(value, encoding, options) {
- if (typeof encoding !== 'string') {
- options = encoding
- encoding = undefined
- }
- return compile(options)(
- postprocess(
- parse(options).document().write(preprocess()(value, encoding, true))
- )
- )
- }
|