# Adicionar suporte para mapas mentais e linhas do tempo

**URL:** https://meta.discourse.org/t/add-support-of-mindmaps-and-timelines/282417
**Category:** Feature
**Tags:** completed, mermaid
**Created:** [Fevereiro 19, 2023, 5:34am UTC](https://meta.discourse.org/t/add-support-of-mindmaps-and-timelines/282417 "2023-02-19T05:34:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)
#### Post date: [Fevereiro 19, 2023, 5:34am UTC](https://meta.discourse.org/t/add-support-of-mindmaps-and-timelines/282417/1 "2023-02-19T05:34:24Z")

</div>

Isto é ótimo. No entanto, parece não funcionar com [mapas mentais](https://mermaid.js.org/syntax/mindmap.html) e [linhas do tempo](https://mermaid.js.org/syntax/timeline.html). Tentei fazer um fork e atualizar para o Mermaid v9.4.0, mas ainda estou recebendo um erro. Este código funciona [no editor ao vivo deles](https://mermaid.live/edit#pako:eNo1TrsKwzAM_BWjOV_grY-1S7tqEZHSGiI5uPJQQv49akNvueMecCuMlQUyaDFWWtDutTpaCpwOSun8Fxc0GEClKRWO0foNEPwlKgg5JMtEfXYEtC2q1L0-PjZC9tZlgL4wuVwLPRsp5Inmd7jCxWu7HUd-f7YdAcAwvQ), mas não no Discourse, mesmo com o Mermaid v9.4.0:

```mermaid
mindmap
Root
    A
      B
      C

```

* * *

Também este, mas ele não funciona no editor ao vivo deles, que parece estar executando a v9.3.0. Ele funciona em uma página HTML simples usando a v9.4.0.

```mermaid
timeline
    title History of Social Media Platform
    2002 : LinkedIn
    2004 : Facebook : Google
    2005 : Youtube
    2006 : Twitter

```

* * *

Se eu descobrir, postarei aqui novamente.

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [Julho 17, 2023, 8:19pm UTC](https://meta.discourse.org/t/add-support-of-mindmaps-and-timelines/282417/2 "2023-07-17T20:19:19Z")

</div>

Isso precisa ser atualizado para poder usar os novos recursos do mermaid js.  
Tenho o mesmo problema:

> [@Mermaid JS Plugin](https://meta.discourse.org/t/mermaid-js-plugin/88696/21):
>
> In flow chart, some text does not display in right format Speacially when you need in `` for format: "`The **cat** in the hat`" [Cấu trúc tuyển dụng nhân sự wo24 - Core \_ System - Working24] Everything just ok at mermaid.live This is test for this sample: flowchart LR subgraph "One" a("`The **cat** in the hat`") -- "edge label" --\> b{{"`The **dog** in the hog`"}} end subgraph "` **Two** `" c("`The **cat** in the hat`") -- "`Bold **edge label** `" --\> d("The dog in the hog") end From…

---

<div class="post-metadata">

### Author: ![TheDarkWizard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thedarkwizard/32/177913_2.png) [@TheDarkWizard](https://meta.discourse.org/u/TheDarkWizard)
#### Post date: [Julho 26, 2023, 1:11am UTC](https://meta.discourse.org/t/add-support-of-mindmaps-and-timelines/282417/3 "2023-07-26T01:11:30Z")

</div>

@equipe Haveria alguma chance de conseguirmos fazer o Timeline, mapas mentais e afins funcionarem ou, pelo menos, nos indicar a direção certa para fazê-lo funcionar?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Julho 26, 2023, 1:50am UTC](https://meta.discourse.org/t/add-support-of-mindmaps-and-timelines/282417/4 "2023-07-26T01:50:26Z")

</div>

Atualização deve chegar em breve:

> <https://github.com/discourse/discourse-mermaid-theme-component/pull/17>
>
> Adds many features including mind maps and more.
> 
> This migrates us from "sync" e…xecution of mermaid to async per the 10.0
> breaking change.

---

<div class="post-metadata">

### Author: ![TheDarkWizard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thedarkwizard/32/177913_2.png) [@TheDarkWizard](https://meta.discourse.org/u/TheDarkWizard)
#### Post date: [Julho 26, 2023, 1:52am UTC](https://meta.discourse.org/t/add-support-of-mindmaps-and-timelines/282417/5 "2023-07-26T01:52:13Z")

</div>

Obrigado Sam :)!

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [Outubro 16, 2023, 4:46pm UTC](https://meta.discourse.org/t/add-support-of-mindmaps-and-timelines/282417/6 "2023-10-16T16:46:57Z")

</div>


