Skip to content

Commit 5f02d02

Browse files
committed
Fixed inconsistency of code block sequence number in community edition and Insiders
1 parent c3ba161 commit 5f02d02

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

docs/insiders/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ You can cancel your sponsorship anytime.[^5]
175175
[![Datadog]](https://datadoghq.com/){ target=_blank title="Datadog" }
176176
[![Zenoss]](https://zenoss.com/){ target=_blank title="Zenoss" }
177177
[![Elli]](https://www.elli.eco/en/home){ target=_blank title="Elli - A Brand of the Volkswagen Group" }
178-
[![Posit]](docs.posit.co){ target=_blank title="Posit" }
178+
[![Posit]](https://docs.posit.co){ target=_blank title="Posit" }
179179
[![n8n]](https://n8n.io){ target=_blank title="n8n" }
180180
[![Dogado]](https://www.dogado.de){ target=_blank title="Dogado" }
181181
[![World Wide Technology]](https://wwt.com){ target=_blank title="World Wide Technology" }

docs/setup/changing-the-colors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Click on a tile to change the color scheme:
4040
button.addEventListener("click", function() {
4141
var attr = this.getAttribute("data-md-color-scheme")
4242
document.body.setAttribute("data-md-color-scheme", attr)
43-
var name = document.querySelector("#__code_1 code span.l")
43+
var name = document.querySelector("#__code_0 code span.l")
4444
name.textContent = attr
4545
})
4646
})
@@ -95,7 +95,7 @@ Click on a tile to change the primary color:
9595
button.addEventListener("click", function() {
9696
var attr = this.getAttribute("data-md-color-primary")
9797
document.body.setAttribute("data-md-color-primary", attr)
98-
var name = document.querySelector("#__code_2 code span.l")
98+
var name = document.querySelector("#__code_1 code span.l")
9999
name.textContent = attr.replace("-", " ")
100100
})
101101
})
@@ -152,7 +152,7 @@ Click on a tile to change the accent color:
152152
button.addEventListener("click", function() {
153153
var attr = this.getAttribute("data-md-color-accent")
154154
document.body.setAttribute("data-md-color-accent", attr)
155-
var name = document.querySelector("#__code_3 code span.l")
155+
var name = document.querySelector("#__code_2 code span.l")
156156
name.textContent = attr.replace("-", " ")
157157
})
158158
})

docs/setup/changing-the-language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Click on a tile to change the directionality:
126126
button.addEventListener("click", function() {
127127
var attr = this.getAttribute("data-md-dir")
128128
document.body.dir = attr
129-
var name = document.querySelector("#__code_3 code span.l")
129+
var name = document.querySelector("#__code_2 code span.l")
130130
name.textContent = attr
131131
})
132132
})

material/assets/javascripts/bundle.8bbcded3.min.js renamed to material/assets/javascripts/bundle.20c9977b.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/assets/javascripts/bundle.8bbcded3.min.js.map renamed to material/assets/javascripts/bundle.20c9977b.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/base.html

Lines changed: 1 addition & 1 deletion
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.8bbcded3.min.js' | url }}"></script>
243+
<script src="{{ 'assets/javascripts/bundle.20c9977b.min.js' | url }}"></script>
244244
{% for path in config.extra_javascript %}
245245
<script src="{{ path | url }}"></script>
246246
{% endfor %}

src/assets/javascripts/components/content/code/_/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export function mountCodeBlock(
177177
feature("content.code.copy") && !el.closest(".no-copy")
178178
)) {
179179
const parent = el.closest("pre")!
180-
parent.id = `__code_${++sequence}`
180+
parent.id = `__code_${sequence++}`
181181
parent.insertBefore(
182182
renderClipboardButton(parent.id),
183183
el

0 commit comments

Comments
 (0)