Markdown pictures: freed with their elements, glyphs whole, failures keep the source, file URLs parsed, Mermaid labels in Ely's ink
CI / platforms (windows-latest) (push) Failing after 9s
CI / site (push) Successful in 23s
CI / crate (push) Failing after 27m31s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-11 23:59:56 -04:00
1 parent d5ecc5a69e
commit ab9a14c692
12 files changed
+417 -126

No files matched your search

+6 -5
View File
@@ -201,7 +201,8 @@ pub fn emoji(cx: &App) -> impl IntoElement + use<> {
}
pub fn latex(cx: &App) -> impl IntoElement + use<> {
let math = |source: &str| Latex::parse(source).expect("gallery formula parses");
let math =
|id: &'static str, source: &str| Latex::parse(id, source).expect("gallery formula parses");
section(
"Latex / MathInline",
"TeX typeset by RaTeX, in the text's color.",
@@ -210,17 +211,17 @@ pub fn latex(cx: &App) -> impl IntoElement + use<> {
.child(
specimens()
.gap_10()
.child(specimen("euler", math(r"e^{i\pi} + 1 = 0"), cx))
.child(specimen("euler", math("euler", r"e^{i\pi} + 1 = 0"), cx))
.child(specimen(
"sum",
math(r"\sum_{k=1}^{n} k = \frac{n(n+1)}{2}"),
math("sum", r"\sum_{k=1}^{n} k = \frac{n(n+1)}{2}"),
cx,
))
.child(specimen(
"root",
math(r"x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}"),
math("root", r"x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}"),
cx,
)),
)
.child(code("Latex::parse(r\"e^{i\\pi} + 1 = 0\")?", cx))
.child(code("Latex::parse(\"euler\", r\"e^{i\\pi} + 1 = 0\")?", cx))
}