Skip to content

Commit 77a68cb

Browse files
authored
leap: Fix links not rendering inside special blocks (#1146)
https://exercism.org/tracks/haskell/exercises/leap/approaches/logical-expression Currently two links inside special blocks/admonitions aren't rendered. The fix is moving the references inside the blocks https://forum.exercism.org/t/link-references-in-special-blocks-admonitions-are-not-rendered/3803/6
1 parent 0f98b75 commit 77a68cb

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

exercises/practice/leap/.approaches/conditional-expression/content.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ _ = case p of
3232
True -> t
3333
False -> f
3434
```
35+
36+
[wikipedia-syntactic-sugar]:
37+
https://en.wikipedia.org/wiki/Syntactic_sugar
38+
"Wikipedia: Syntactic sugar"
3539
~~~~
3640

3741

@@ -113,6 +117,3 @@ In our solution above we have
113117
[so-guards-if-cases]:
114118
https://stackoverflow.com/questions/9345589/
115119
"StackOverflow: Guards vs. if-then-else vs. cases in Haskell"
116-
[wikipedia-syntactic-sugar]:
117-
https://en.wikipedia.org/wiki/Syntactic_sugar
118-
"Wikipedia: Syntactic sugar"

exercises/practice/leap/.approaches/logical-expression/content.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ Here, `infixr 3 &&` indicates that `&&` has precedence 3 and [associates][wikipe
4242
Similarly, `infixl 6 +` means that `+` has precedence 6 and associates to the left.
4343
No precedence is shown for `not`, because none has been explicitly defined.
4444
However, `not` is just a regular function, and function application always has precedence 10.
45+
46+
[wikipedia-associativity]:
47+
https://en.wikipedia.org/wiki/Operator_associativity
48+
"Wikipedia: Operator associativity"
4549
~~~~
4650

4751
~~~~exercism/note
@@ -55,6 +59,10 @@ Hint: fill out the [truth tables][wikipedia-truth-table] for both versions.
5559
This is not possible in general: sometimes `(P && Q) || R` and `P && (Q || R)` disagree.
5660
5761
The motivation for the parentheses in the highlighted solution is efficiency; see below.
62+
63+
[wikipedia-truth-table]:
64+
https://en.wikipedia.org/wiki/Truth_table
65+
"Wikipedia: Truth table"
5866
~~~~
5967

6068

@@ -141,15 +149,9 @@ As you can see, this version always does at least 2 tests.
141149
[operators-source-code]:
142150
https://hackage.haskell.org/package/ghc-prim-0.9.0/docs/src/GHC.Classes.html#line-509
143151
"source code of the logical operators"
144-
[wikipedia-associativity]:
145-
https://en.wikipedia.org/wiki/Operator_associativity
146-
"Wikipedia: Operator associativity"
147152
[wikipedia-non-strict-evaluation]:
148153
https://en.wikipedia.org/wiki/Evaluation_strategy#Non-strict_evaluation
149154
"Wikipedia: Non-strict evaluation"
150155
[wikipedia-precedence]:
151156
https://en.wikipedia.org/wiki/Order_of_operations
152157
"Wikipedia: Order of operations"
153-
[wikipedia-truth-table]:
154-
https://en.wikipedia.org/wiki/Truth_table
155-
"Wikipedia: Truth table"

0 commit comments

Comments
 (0)