Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧐[问题 | question]请问如何正确导入md文件?即md文件作为页面展示。 #10245

Closed
andrewgogogo opened this issue Sep 22, 2022 · 5 comments

Comments

@andrewgogogo
Copy link

请问如何正确导入md文件?即md文件作为页面展示。

@github-actions
Copy link

以下的 Issues 可能会帮助到你 / The following issues may help you

@andrewgogogo
Copy link
Author

求助求助,太难了

@fangzhengjin
Copy link

这是pro该干的事嘛, 这不是dumi的事嘛

@andrewgogogo
Copy link
Author

这是pro该干的事嘛, 这不是dumi的事嘛

就是导入md文件的时候会提示找不到模块,可否提供方案参考?
/* eslint-disable react/no-children-prop */
import ReactMarkdown from 'react-markdown';
import Test from 'test.md';

// const Test = '123';

function App() {
return (


<ReactMarkdown children={${Test}} />

);
}

export default App;

@chenshuai2144
Copy link
Collaborator

改使用dumi吧,有个专门的模式用于和系统搭配

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants