Skip to content

Fix rendering issues: mermaid, table width, display math, cpp highlight #58

Description

@patakuti

Reported Issues

  1. Mermaid diagrams not rendering

    • When a theme is saved in localStorage, the theme restore script calls mermaid.initialize({startOnLoad: false}), overriding the initial config before DOMContentLoaded fires, so diagrams are never rendered.
  2. Table column widths are equal

    • width: 100% causes columns to be distributed equally.
    • Column widths should adjust to content.
  3. Display math ($$...$$) is too large

    • Block math renders too large relative to body text.
  4. No syntax highlighting for ```cpp

    • C++ code blocks appear uncolored (or colors are too subtle to notice).

Resolution

Related PR

#57

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions