aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/normalize_identifier.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-28 17:11:04 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-28 17:12:37 +0200
commit7bb1008f508f61b51dd80086a91ada347be36c68 (patch)
tree05a652df5d4230c756ed551df37fe3346a9447d5 /src/util/normalize_identifier.rs
parent6e9447b5ec7f1823b7d08ed8f51eed23d3856cce (diff)
downloadmarkdown-rs-7bb1008f508f61b51dd80086a91ada347be36c68.tar.gz
markdown-rs-7bb1008f508f61b51dd80086a91ada347be36c68.tar.bz2
markdown-rs-7bb1008f508f61b51dd80086a91ada347be36c68.zip
Add some more crosslinks to docs
Diffstat (limited to '')
-rw-r--r--src/util/normalize_identifier.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/normalize_identifier.rs b/src/util/normalize_identifier.rs
index c287e1a..4753f7b 100644
--- a/src/util/normalize_identifier.rs
+++ b/src/util/normalize_identifier.rs
@@ -1,6 +1,6 @@
//! Utility to normalize identifiers.
-/// Normalize an identifier, as found in references and
+/// Normalize an identifier, as found in [references][label_end] and
/// [definitions][definition], so it can be compared when matching.
///
/// This collapsed whitespace found in markdown (`\t`, `\r`, `\n`, and ` `)
@@ -30,8 +30,7 @@
/// * [`micromark-util-normalize-identifier` in `micromark`](https://github.com/micromark/micromark/tree/main/packages/micromark-util-normalize-identifier)
///
/// [definition]: crate::construct::definition
-///
-/// <!--To do: link resource.-->
+/// [label_end]: crate::construct::label_end
pub fn normalize_identifier(value: &str) -> String {
let mut codes = vec![];
let mut at_start = true;