diff options
| author | Ben Bridle <bridle.benjamin@gmail.com> | 2026-03-02 14:38:07 +1300 |
|---|---|---|
| committer | Ben Bridle <bridle.benjamin@gmail.com> | 2026-03-02 14:38:07 +1300 |
| commit | a490ead653cac5f3d1ecc25899b89431c4be3483 (patch) | |
| tree | e79eb04246b4a652672ff07a7488c4b5c21eb032 /src/generate_html.rs | |
| parent | 12b28c938bd28ca643cd7da32c8b054847f3b79e (diff) | |
| download | toaster-a490ead653cac5f3d1ecc25899b89431c4be3483.zip | |
Collapse consecutive hyphens in slugs
Previously, a heading or page called something like 'Name - subtitle'
would become the slug 'name---subtitle' because the hyphen is stuck
between spaces which also become hyphens. This looks silly. The new
function will generate the slug 'name-subtitle' instead.
Diffstat (limited to 'src/generate_html.rs')
0 files changed, 0 insertions, 0 deletions
