Skip to content

Commit 3cbd0de

Browse files
committed
Fix broken link error in CI
pulldown-cmark's link checker does not recognize <span> apparently. We therefore have to rely on markdown footnotes instead. As those footnotes use labels like 1 or 2, those could easily be confused with counts. Thus we hide those and use non-numeric labels.
1 parent 3eacf00 commit 3cbd0de

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/statements.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ fn outer() {
5454
> **<sup>Syntax</sup>**\
5555
> _LetStatement_ :\
5656
> &nbsp;&nbsp; [_OuterAttribute_]<sup>\*</sup> `let` [_PatternNoTopAlt_]
57-
> ( `:` [_Type_] )<sup>?</sup> (`=` [_Expression_][](#let-else-restriction)
57+
> ( `:` [_Type_] )<sup>?</sup> (`=` [_Expression_] <sup>[](#let-else-restriction)</sup>
5858
> ( `else` [_BlockExpression_]) <sup>?</sup> ) <sup>?</sup> `;`
5959
60-
<span id="let-else-restriction">† When an `else` block is specified, the
61-
_Expression_ must not be a [_LazyBooleanExpression_], or end with a `}`.</span>
60+
[^let-else-restriction]:<sup>†</sup> When an `else` block is specified, the
61+
_Expression_ must not be a [_LazyBooleanExpression_], or end with a `}`.
6262

6363
A *`let` statement* introduces a new set of [variables], given by a [pattern].
6464
The pattern is followed optionally by a type annotation and then either ends,

theme/reference.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,11 @@ main .warning p::before {
5151
.ayu main .warning p a {
5252
color: #80d0d0;
5353
}
54+
55+
/*
56+
We want to use our own footnote labels such as †.
57+
For this, we have to hide the builtin ones.
58+
*/
59+
.footnote-definition-label {
60+
display: none;
61+
}

0 commit comments

Comments
 (0)