Skip to content

Render html frame diagrams#15

Closed
gerchowl wants to merge 4 commits into
mainfrom
cursor/render-html-frame-diagrams-360a
Closed

Render html frame diagrams#15
gerchowl wants to merge 4 commits into
mainfrom
cursor/render-html-frame-diagrams-360a

Conversation

@gerchowl
Copy link
Copy Markdown
Contributor

Implement HTML Frame-Based Diagram Rendering to simplify the workflow and enable dynamic theme switching for diagrams in HTML output.

The previous approach required pre-compiling diagrams into separate light/dark SVG files and then injecting them into the HTML, leading to a complex build pipeline and larger file sizes. This new approach leverages Typst's html.frame to generate inline SVGs directly during HTML compilation, with a JavaScript module handling dynamic recoloring based on the active theme. This results in a simpler, more efficient, and more maintainable system.


Open in Cursor Open in Web

Co-authored-by: lars.gerchow <lars.gerchow@gmail.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Nov 10, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@gerchowl gerchowl self-assigned this Nov 10, 2025
@gerchowl gerchowl marked this pull request as ready for review November 10, 2025 13:00
cursoragent and others added 3 commits November 10, 2025 13:02
Co-authored-by: lars.gerchow <lars.gerchow@gmail.com>
Co-authored-by: lars.gerchow <lars.gerchow@gmail.com>
Co-authored-by: lars.gerchow <lars.gerchow@gmail.com>
@gerchowl
Copy link
Copy Markdown
Contributor Author

does not work p

@gerchowl gerchowl closed this Nov 10, 2025
@gerchowl gerchowl deleted the cursor/render-html-frame-diagrams-360a branch November 10, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants