react-md-editor icon indicating copy to clipboard operation
react-md-editor copied to clipboard

Allow MDEditor and MDEditor.Markdown to render without CSS styles

Open jnahumphreys opened this issue 3 years ago • 2 comments

I'm looking to use the instance of MDEditor and MDEditor.Markdown without any CSS styling applied to the preview output. I can't find anything in the documentation that would allow a user to instantiate without CSS styles.

Is it possible to use the MDEditor and MDEditor.Markdown without any CSS styling applied?

jnahumphreys avatar Sep 01 '22 15:09 jnahumphreys

Use the babel plugin to remove auto-imported css. https://github.com/uiwjs/babel-plugin-transform-remove-imports

Or custom styles override default styles.

@BinaryJim

jaywcjlove avatar Sep 01 '22 15:09 jaywcjlove

  • editor style: https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-md-editor/file/markdown-editor.css
  • markdown preview style: https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-preview/file/markdown.css @BinaryJim

jaywcjlove avatar Sep 01 '22 15:09 jaywcjlove