JedWatson / react-md-editor

React.js Markdown Editor Component
MIT License
508 stars 62 forks source link

Bullet list and number list are not showing properly in preview #19

Open Andrew781123 opened 1 year ago

Andrew781123 commented 1 year ago

Hello, I just have a basic setup of the MDEditor component with Next.js. Screenshot 2023-01-25 at 16 53 22

All list including number and bullet list are not showing properly in the preview as shown Screenshot 2023-01-25 at 16 51 08

Below are the versions of Next.js and react-md-editor used

"next": "13.1.1",
"@uiw/react-md-editor": "^3.20.2",

Thanks for your help and please let me know if I have to provide more information :)

Andrew781123 commented 1 year ago

I have tried light mode and didn't solve the issue, the bullets and numbers are still missing

Andrew781123 commented 1 year ago

This is my next.config.mjs

// @ts-check
import removeImports from "next-remove-imports";

/**
 * Don't be scared of the generics here.
 * All they do is to give us autocompletion when using this.
 *
 * @template {import('next').NextConfig} T
 * @param {T} config - A generic parameter that flows through to the return type
 * @constraint {{import('next').NextConfig}}
 */
function defineNextConfig(config) {
  return removeImports()(config);
}

export default defineNextConfig({
  reactStrictMode: true,
  swcMinify: true,
  i18n: {
    locales: ["en"],
    defaultLocale: "en",
  },
});
jdai1 commented 1 year ago

I am having the same issue!