4.1.91 • Published 1 year ago

@lhjeong60/react-markdown-preview v4.1.91

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

This package is a modified version of a @uiw/react-markdown-preview.

To use a @uiw/react-markdown-preview on the server side, I have modified require() to (async () => await import())() in some files.

// lib/index.js
// old
var _reactMarkdown = _interopRequireDefault(require("react-markdown"));

// new
var _reactMarkdown = _interopRequireDefault(( async () => await import("react-markdown"))());

I know this is a bad way, but I will use it until I find the right way.