matcornic / hugo-theme-learn

Porting Grav Learn theme to Hugo
https://learn.netlify.com/en/
MIT License
1.6k stars 1.28k forks source link

mindmaps in mermaid (feature request ) #548

Open MartenVijnNaturalis opened 1 year ago

MartenVijnNaturalis commented 1 year ago

Hi Would it be possible to also have this working in Mermaid and the hugo-theme-learn?

mindmap
  root((mindmap))
    Origins
      Long history
      ::icon(fa fa-book)
      Popularisation
        British popular psychology author Tony Buzan
    Research
      On effectivness<br/>and features
      On Automatic creation
        Uses
            Creative techniques
            Strategic planning
            Argument mapping
    Tools
      Pen and paper
      Mermaid

it works in https://mermaid.live/

kind regards Marten

McShelby commented 1 year ago

As of the current Mermaid version 9.2.2 mindmaps are still in experimental state and not included in the official distribution.

To still use it, you have to place the current Mermaid distribution in your project by placing it in static/mermaid/mermaid.js, hoping that the outdated themes code still works with the current version and add the additional auxiliary file manually to your footer.

Shameless plug: Once mindmaps are included in Mermaids distribution it will soon be available in my fork of this theme.