Skip to content

Commit 64ca8fe

Browse files
committed
Fixed table of contents following not working for percent-encoded URIs
1 parent 19fb69e commit 64ca8fe

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Diff for: material/assets/javascripts/bundle.b78d2936.min.js renamed to material/assets/javascripts/bundle.fc8c2696.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/assets/javascripts/bundle.b78d2936.min.js.map renamed to material/assets/javascripts/bundle.fc8c2696.min.js.map

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
</script>
241241
{% endblock %}
242242
{% block scripts %}
243-
<script src="{{ 'assets/javascripts/bundle.b78d2936.min.js' | url }}"></script>
243+
<script src="{{ 'assets/javascripts/bundle.fc8c2696.min.js' | url }}"></script>
244244
{% for path in config.extra_javascript %}
245245
<script src="{{ path | url }}"></script>
246246
{% endfor %}

Diff for: src/assets/javascripts/components/toc/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function watchTableOfContents(
134134
/* Compute anchor-to-target mapping */
135135
const anchors = getElements<HTMLAnchorElement>("[href^=\\#]", el)
136136
for (const anchor of anchors) {
137-
const id = decodeURIComponent(anchor.hash.substring(1))
137+
const id = anchor.hash.substring(1)
138138
const target = getOptionalElement(`[id="${id}"]`)
139139
if (typeof target !== "undefined")
140140
table.set(anchor, target)

0 commit comments

Comments
 (0)