Skip to content

Commit

Permalink
add hint regarding heading slugification
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoholic committed Aug 20, 2024
1 parent d663e91 commit b9e51b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/makeDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
* docs and .md.)
*
* Call like `node ./scripts/makeDocs.js ./path/to/client`.
*
* Headings in markdowns will get a slugified ID by markdown-it-anchor to be linkable.
* It uses the default slugify function:
* (s) => encodeURIComponent(String(s).trim().toLowerCase().replace(/\s+/g, '-'))
*
*/

// IMPORTS
Expand Down

0 comments on commit b9e51b4

Please sign in to comment.