1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- 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))
- )
- )
- }
|