aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/label_start_link.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-28 16:54:37 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-28 16:54:43 +0200
commit6e9447b5ec7f1823b7d08ed8f51eed23d3856cce (patch)
treec313716db1082e6cd1383af66297ce7acd4f1911 /src/construct/label_start_link.rs
parente9db93b428bc3da7c1fa3bcf8acf166012cf18c8 (diff)
downloadmarkdown-rs-6e9447b5ec7f1823b7d08ed8f51eed23d3856cce.tar.gz
markdown-rs-6e9447b5ec7f1823b7d08ed8f51eed23d3856cce.tar.bz2
markdown-rs-6e9447b5ec7f1823b7d08ed8f51eed23d3856cce.zip
Add docs to label end
Diffstat (limited to 'src/construct/label_start_link.rs')
-rw-r--r--src/construct/label_start_link.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/construct/label_start_link.rs b/src/construct/label_start_link.rs
index 677fb50..46d7c9c 100644
--- a/src/construct/label_start_link.rs
+++ b/src/construct/label_start_link.rs
@@ -7,11 +7,10 @@
//! label_start_link ::= '['
//! ```
//!
-//! Label start (link) relates to the `<a>` element in HTML.
+//! Label start (link) does not, on its own, relate to anything in HTML.
+//! When matched with a [label end][label_end], they together relate to the
+//! `<a>` element in HTML.
//! See [*ยง 4.5.1 The `a` element*][html-a] in the HTML spec for more info.
-//!
-//! Whether it contributes a link depends on whether it is followed by a
-//! valid [label end][label_end] or not.
//! Without an end, the characters (`[`) are output.
//!
//! ## Tokens