Skip to content

Commit

Permalink
docs: Prominently mention GitHub sluggification
Browse files Browse the repository at this point in the history
Resolves #3.
  • Loading branch information
not-my-profile authored and rossmacarthur committed Aug 10, 2023
1 parent 1cc173f commit 46273ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
[![Build Status](https://badgers.space/github/checks/rossmacarthur/pulldown-cmark-toc/trunk?label=build)](https://github.com/rossmacarthur/pulldown-cmark-toc/actions/workflows/build.yaml?branch=trunk)

Generate a table of contents from a Markdown document.
By default the heading anchor calculation (aka the "slugification")
is done in a way that attempts to mimic GitHub's (undocumented) behavior.

## Getting started

Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//! Generate a table of contents from a Markdown document.
//!
//! By default the heading anchor calculation (aka the "slugification")
//! is done in a way that attempts to mimic GitHub's (undocumented) behavior.
//! (Though you can customize this with your own [`slug::Slugify`] implementation).
//!
//! # Examples
//!
//! ```
Expand Down

0 comments on commit 46273ae

Please sign in to comment.