nuxt-themes / docus

Write beautiful documentations with Nuxt and Markdown.
https://docus.dev
MIT License
1.59k stars 156 forks source link

[Markdown] Deprecated syntax. Please use options key in order to pass option to remark/rehype plugins. #957

Open arkhaiel opened 1 year ago

arkhaiel commented 1 year ago

Hi, I just updated to the latest Docus version and I got this message when npm run dev. There's absolutely zero context or details. What should I understand ? What is to be modified ?

Is it from my nuxt.config.ts ? It would be Nuxt Content related ? I don't know ... It's definitely the kind of useless message you get, that won't help you at all.

  content: {
    markdown: {
      remarkPlugins: [
        'remark-math'
      ],
      rehypePlugins: [
        'rehype-katex'
      ]
    }
  }

Thanks !

jennie commented 1 year ago

I'm getting the same thing. Not using Docus, just the Content module. My config looks like:

content: {
    markdown: {
      remarkPlugins: [
        "remark-smartypants",
      ],
...