learnyouanelm / learnyouanelm.github.io

“Learn You an Elm!”, based on LYAH by Miran Lipovača
http://learnyouanelm.github.io/
93 stars 16 forks source link

Anchor link in chapter 10 not working #38

Closed tillydray closed 6 years ago

tillydray commented 6 years ago

~There's a link~ There are (at least) 2 links in chapter 10, to the

~the anchor link is both~ which are malformed. The current anchor links ~is~ are

I tried several permutations but couldn't get it to work, otherwise I'd submit a PR.

EDIT: added the second malformed anchor link after I discovered it.

ebenpack commented 6 years ago

Nice catches. These are both been fixed now. The markdown generated section headings also automatically generate an ID, so this

Function composition
--------------------

In mathematics, function composition is defined like this:

Generates this markup with the following section heading:

<h2 id="function-composition">Function composition</h2>

<p>In mathematics, function composition is defined like this:<p>

And you can link to this like:

[point-free style](06-higher-order-functions#function-composition)

The other link also had a trailing slash.