Differences From Artifact [6b21bda7]:
- File code-docs/dust.scrbl — part of check-in [71cdd100] at 2020-03-15 18:33:12 on branch trunk — Change system for managing series: remove from SQLite cache, manage as a hash table of structs instead. (user: joel, size: 11730) [annotate] [blame] [check-ins using]
To Artifact [33008fed]:
- File code-docs/dust.scrbl — part of check-in [dc2a4bd0] at 2020-03-31 03:45:52 on branch trunk — Move normalize func into dust.rkt (user: joel, size: 12031) [annotate] [blame] [check-ins using]
- File yarn-doc/dust.scrbl — part of check-in [43a06b90] at 2021-11-28 19:19:44 on branch evolve — Clean house (user: joel, size: 12031) [annotate] [blame] [check-ins using]
| ︙ | |||
156 157 158 159 160 161 162 163 164 165 | 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | + + + + + + + + + + + + |
(first-words txs-punc-and-split-elems 5)
(first-words txs-dashes 5)
(first-words txs-parens-commas 5)
(first-words txs-short 5)
]
@defproc[(normalize [str string?]) string?]{
Removes all non-space/non-alphanumeric characters from @racket[_str], converts it to lowercase, and
replaces all spaces with hyphens.
@examples[#:eval dust-eval
(normalize "Why, Hello World!")
(normalize "My first-ever 99-argument function, haha")
]
}
@section{Article parsers and helpers}
@defparam[listing-context ctxt (or/c 'blog 'feed 'print "") #:value ""]
|
| ︙ |