Commit 5b4c557
committed
Simplify sanitation
It seems to suffice to use `str downcase` followed by `str kebab-case`
to arrive at the same behavior as the markdown anchor generation.
Using `str downcase` before ensures that CamelCase doesn't get converted
erroneously.1 parent 51c6a24 commit 5b4c557
1 file changed
+1
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 86 | + | |
93 | 87 | | |
94 | 88 | | |
95 | 89 | | |
| |||
0 commit comments