mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
9 lines
295 B
JavaScript
9 lines
295 B
JavaScript
const convertMd2Doc = require('./convert-md-to-doc')
|
|
const projectPath = require('./project-path')
|
|
|
|
module.exports = async function (content, path) {
|
|
const env = process.env.NODE_ENV
|
|
const relativeUrl = path.replace(projectPath + '/', '')
|
|
return convertMd2Doc(content, relativeUrl, env)
|
|
}
|