diff --git a/CHANGELOG.md b/CHANGELOG.md index 83354f84a8..ce4685c83f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -* Added anchor links to admonition blocks, making it possible to create direct links to specific admonitions. ([#2505], [#2676]) +* Added anchor links to admonition blocks, making it possible to create direct links to specific admonitions. ([#2505], [#2676], [#2688]) * Added different banners for dev and unreleased docs ([#2382], [#2682]) ## Version [v1.10.2] - 2025-04-25 diff --git a/src/html/HTMLWriter.jl b/src/html/HTMLWriter.jl index f22cbdf45a..48c851fce3 100644 --- a/src/html/HTMLWriter.jl +++ b/src/html/HTMLWriter.jl @@ -2396,7 +2396,7 @@ function domify(dctx::DCtx, node::Node, a::MarkdownAST.Admonition) isempty(cat_sanitized) ? "" : ".is-category-$(cat_sanitized)" end node_repr = sprint(io -> show(io, node)) - content_hash = bytes2hex(SHA.sha1(node_repr))[1:8] + content_hash = string(hash(node_repr), base = 16) admonition_id = if !isempty(a.title) base_id = Documenter.slugify(a.title) "$(base_id)-$(content_hash)"