Skip to content

Commit 88004be

Browse files
committed
Fixed regression with table of contents in last release
1 parent 02bf848 commit 88004be

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

material/templates/assets/javascripts/bundle.e1c3ead8.min.js renamed to material/templates/assets/javascripts/bundle.caa56a14.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/javascripts/bundle.e1c3ead8.min.js.map renamed to material/templates/assets/javascripts/bundle.caa56a14.min.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
</script>
250250
{% endblock %}
251251
{% block scripts %}
252-
<script src="{{ 'assets/javascripts/bundle.e1c3ead8.min.js' | url }}"></script>
252+
<script src="{{ 'assets/javascripts/bundle.caa56a14.min.js' | url }}"></script>
253253
{% for script in config.extra_javascript %}
254254
{{ script | script_tag }}
255255
{% endfor %}

src/templates/assets/javascripts/components/toc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export function watchTableOfContents(
132132
const table = new Map<HTMLAnchorElement, HTMLElement>()
133133

134134
/* Compute anchor-to-target mapping */
135-
const anchors = getElements<HTMLAnchorElement>("[href^=\\#]", el)
135+
const anchors = getElements<HTMLAnchorElement>(".md-nav__link", el)
136136
for (const anchor of anchors) {
137137
const id = decodeURIComponent(anchor.hash.substring(1))
138138
const target = getOptionalElement(`[id="${id}"]`)

0 commit comments

Comments
 (0)