FriendlyUser / vuepress-theme-cool

A custom vuepress theme with mermaid and plantuml, katex and vue components.
https://vuepress-theme-cool.js.org/
MIT License
59 stars 11 forks source link

Plantuml stopped working for 1.0.3 beta version #9

Closed chbndrhnns closed 5 years ago

chbndrhnns commented 5 years ago

If I use your 1.0.3 beta version, I see the plain PlantUML code instead of a rendered diagram.

FriendlyUser commented 5 years ago
 markdown: {
    extendMarkdown: md => {
      md.set({ html: true })
      md.use(require('markdown-it-katex'))
      md.use(require('markdown-it-plantuml'))
      md.use(require('markdown-it-admonition'))
    }
  }

Vuepress 1 changed the way you improve markdown-it-extensions,, https://v1.vuepress.vuejs.org/miscellaneous/migration-guide.html#markdown-config and https://v1.vuepress.vuejs.org/config/#markdown-extendmarkdown, since it displays correctly on thevuepress-theme-cool-starter site, I think this is an configuration issue

chbndrhnns commented 5 years ago

You are correct. I did not apply the updated settings. Thanks so much for the help!