This commit is contained in:
19
node_modules/micromark/lib/index.mjs
generated
vendored
Normal file
19
node_modules/micromark/lib/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
export default buffer
|
||||
|
||||
import compiler from './compile/html.mjs'
|
||||
import parser from './parse.mjs'
|
||||
import postprocess from './postprocess.mjs'
|
||||
import preprocessor from './preprocess.mjs'
|
||||
|
||||
function buffer(value, encoding, options) {
|
||||
if (typeof encoding !== 'string') {
|
||||
options = encoding
|
||||
encoding = undefined
|
||||
}
|
||||
|
||||
return compiler(options)(
|
||||
postprocess(
|
||||
parser(options).document().write(preprocessor()(value, encoding, true))
|
||||
)
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user