Integrate marq injections and hotmeal live-reloading (w/mermaid.js support)#237
Merged
fasterthanlime merged 8 commits intomainfrom Feb 9, 2026
Merged
Integrate marq injections and hotmeal live-reloading (w/mermaid.js support)#237fasterthanlime merged 8 commits intomainfrom
fasterthanlime merged 8 commits intomainfrom
Conversation
…LiveReloadServer - Replace manual html_cache HashMap with hotmeal_server::LiveReloadServer for HTML caching, diffing, and head injection change detection - Thread head_injections from ServedHtml through ServeContent::Html, OutputFile::Html, and into inject_livereload_with_build_info for both serve and build paths - Replace diff_html_cell IPC calls in trigger_reload with in-process LiveReloadServer.diff_route_with_head() which handles both HTML patches and head injection changes (HeadChanged -> full reload) - Update marq to pick up head_injections on Document (mermaid now client-side) - Remove unused diff_html/diff_html_cell wrapper functions from cells.rs - Bump PICANTE_CACHE_VERSION to 5 (ParsedData/Section/Page shape changed)
Only inject copy buttons and position:relative styling into <pre> elements that contain a <code> child (fenced code blocks). Raw HTML <pre> blocks like <pre class="mermaid"> now pass through untouched. Also add a mermaid diagram example to the features docs. Fixes #233
hotmeal no longer escapes > to > in text nodes, fixing raw HTML <pre> blocks like mermaid diagrams. See bearcove/hotmeal#34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #235: uses marq's injections (for client-side stuff like mermaid.js etc.) and migrates to hotmeal's own live-reload code, which supports "opaque nodes", which are needed for client-side stuff to "re-render using their JS SDK" rather than "patch the DOM in-place".