# 6. Mermaid and MathJax

## Mermaid example

Documentation: https://mermaidjs.github.io

```mermaid
sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail!
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!
```

## MathJax example

Documentation: https://www.mathjax.org

> Please choose: View > Preview MathJax

When (($a \ne 0$)), there are two solutions to $$ax^2 + bx + c = 0$$ and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
