ratatui-org / ratatui-website

Ratatui Documentation
http://ratatui.rs/
MIT License
95 stars 57 forks source link

Tweak TEA state diagram #638

Closed joshka closed 3 weeks ago

joshka commented 3 weeks ago

Simplifies the diagram, fixes up the line height and colors. Fixes https://github.com/ratatui-org/ratatui-website/issues/633

Rationale for changes:

cloudflare-pages[bot] commented 3 weeks ago

Deploying ratatui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3e6807b
Status: ✅  Deploy successful!
Preview URL: https://43e31772.ratatui.pages.dev
Branch Preview URL: https://jm-fix-mermaid.ratatui.pages.dev

View logs

joshka commented 3 weeks ago

New:

image

Old:

image
joshka commented 3 weeks ago

@kdheepak threre's a note about using rehype-mermaid instead of remark mermaid on the latter's github - thoughts? rehype-mermaid seems to work when I tried it. Not sure if there's a reason to use the remark version.

kdheepak commented 3 weeks ago

If it works great!

remark mermaid convert markdown to html and pass the markdown + html to Astro to convert to html.

rehype mermaid converts the html outputted by Astro into html again.

So in this case, if it works great, we can switch.