mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
11 lines
286 B
JavaScript
11 lines
286 B
JavaScript
const convertMd2Demo = require('./convert-md-to-demo')
|
|
const projectPath = require('./project-path')
|
|
|
|
module.exports = function (content, path) {
|
|
const relativeUrl = path.replace(projectPath + '/', '')
|
|
return convertMd2Demo(content, {
|
|
relativeUrl,
|
|
resourcePath: path
|
|
})
|
|
}
|