4.1.91 • Published 3 years ago
@lhjeong60/react-markdown-preview v4.1.91
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.