Skip to content

support writing React in markdown file #143

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

Merged
merged 9 commits into from
Jun 9, 2021

Conversation

MuYunyun
Copy link
Owner

@MuYunyun MuYunyun commented Jun 9, 2021

  • 🚀 create-react-doc 集成 MDX。issue
    • 🚀 支持在 .md 文件中书写 React 组件
    • 🚀 支持在 .md 文件中书写数学公式

@MuYunyun MuYunyun changed the title Feature/support react cp mujue support writing React in markdown file Jun 9, 2021
.babelrc.js Outdated
babelrc.compact = true;
}

module.exports = babelrc
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this file.


## 书写组件

[create-react-doc](https://github.com/MuYunyun/create-react-doc) 内置了 [mdx](https://github.com/mdx-js/mdx), 你可以在 .md 文件中书写 React 组件, 因此你可以选择 create-react-doc 来快速搭建组件站点开发环境。
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因此你可以选择 create-react-doc 来快速搭建组件站点

// generate file cache only it isn't in .gitignore
if (!ifInGitIgnore(mdfilePath)) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo: 确认多文件夹影响。

@MuYunyun MuYunyun merged commit 427c31d into main Jun 9, 2021
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

Successfully merging this pull request may close these issues.

1 participant