- show a localized gallery_error message when data or InfiniteGrid fails
- sanitize remote image URLs; keep items mounted and re-layout on resize
- fix duplicate load-more button and stuck loading spinner
- reorder justifiedIndexPostUI after relativeDate, destroy masonry on pjax
- polish gallery button and homepage card cover overlay
- escape closing body/html tags in inline mermaid script template
- bump version to 5.7.3 and refresh third-party asset versions
The htmlSource template literal in mermaid.pug is rendered as an inline
<script> block and contains a raw </body>. Hexo's injector replaces the
first </body> in the document for body_end entries, so any plugin script
injected via hexo.extend.injector('body_end') lands inside this script
and its </script> terminates the inline script early (SyntaxError:
Unexpected end of input), breaking Mermaid rendering and all subsequent
inline scripts on the page.
Escape the closing tags to <\/body><\/html> (a no-op for the generated
string) so the inline script carries no raw </body> and body_end
injection lands at the real document end again.
Fixesjerryc127/hexo-theme-butterfly#1832
Once mjx-container is forced to display: inline, its own max-width and
overflow-x no longer apply to a non-replaced inline box, so the formula
width escapes to the document. The previous rule only covered p and li.
- cover headings (h1-h6) too, otherwise a long inline formula in a
heading widens the page (measured 395px of horizontal page scroll at a
420px viewport)
- li becomes a scroll container, which clips its outside-positioned
::marker, so switch those items to list-style-position: inside
- fall back to the previous inline-grid when :has() is unsupported,
since the container rules are then dropped while display: inline still
applies, which is worse than before
MathJax 4 emits an inline formula as several <svg> chunks separated by
<mjx-break> elements. The theme renders every non-display container as
`display: inline-grid`, which turns each chunk into a grid item, so the
chunks are stacked into 2-4 rows instead of flowing inline.
Neither column flow nor flex keeps the MathJax layout: grid/flex ignore the
per-chunk `vertical-align` (all chunks get top-aligned) and drop the space
provided by <mjx-break>; `inline-block` would turn the scroll container's
baseline into the bottom margin edge and inflate the line box.
Keep the container inline -- the only layout that preserves chunk spacing,
per-chunk vertical-align and the text baseline -- and use `white-space:
nowrap` so MathJax's own inline line breaking cannot split it. Horizontal
scrolling moves to the enclosing paragraph/list item, which only becomes a
scroll container when it actually holds an inline formula, so overlong
formulas scroll instead of widening the page. MathJax 3 output (a single
<svg>) and display math are unaffected.
Verified with the real theme CSS + hexo-filter-mathjax 0.11.1 output in
headless Edge at 1280/430 px, against MathJax 3.2.2 as a regression check.
feat(search): support DocSearch v5 multi-index via `indices`
fix(artalk): build vote block in init JS to survive pjax
fix(preconnect): emit third-party CDN preconnect only when used
chore(deps): bump bundled CDN plugins and moment-timezone
docs: rewrite README / README_CN
The star history chart was broken due to GitHub stargazer API restrictions. Update the chart and its link to use star-history.dera.page, which requires no API token and uses the same domain for API and frontend.
- Remove APlayer/Meting music player support
- Upgrade Artalk to 2.10.0 and add vote feature
- Cache plugins.yml to avoid re-rendering on every generate
- Add null safety for error_404 and highlight config
- Fix series date timestamp format
- Enhance shuoshuo mockPost compatibility and error handling
- Prevent scrollbar flicker when fancybox is open
- Update plugin versions (docsearch, katex, twikoo)
- Bump version to 5.7.0
- Add :not([data-fancybox]) to pjaxExclude to prevent fancybox links from being loaded via pjax
- Refactor series grouping to use a shared hexo._seriesGroups object built once
- Improve performance by avoiding repeated post iteration in both tag and helper
- Version bump to 5.6.1