diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-30 11:46:43 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-30 11:46:43 +0200 |
commit | 90889ac38dee7b3ad3c9b6c8b3e5aeb66e8b5846 (patch) | |
tree | b8cbfc1c43f23c7f1fa1367bcbeaeedbbbe18ef0 /src/construct/definition.rs | |
parent | 70ed10c131883553582a6dfce7f07eba6c1387fc (diff) | |
download | markdown-rs-90889ac38dee7b3ad3c9b6c8b3e5aeb66e8b5846.tar.gz markdown-rs-90889ac38dee7b3ad3c9b6c8b3e5aeb66e8b5846.tar.bz2 markdown-rs-90889ac38dee7b3ad3c9b6c8b3e5aeb66e8b5846.zip |
Refactor some docs, fix some grammar
Diffstat (limited to '')
-rw-r--r-- | src/construct/definition.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/construct/definition.rs b/src/construct/definition.rs index aca22a6..af94d12 100644 --- a/src/construct/definition.rs +++ b/src/construct/definition.rs @@ -3,7 +3,7 @@ //! They’re formed with the following BNF: //! //! ```bnf -//! definition ::= label ':' whitespace destination [ whitespace title ] [ space_or_tab ] +//! definition ::= label ':' [ whitespace ] destination [ whitespace title ] [ space_or_tab ] //! //! ; See the `destination`, `title`, and `label` constructs for the BNF of //! ; those parts. @@ -20,7 +20,7 @@ //! See [*§ 4.5.1 The `a` element*][html-a] and //! [*§ 4.8.3 The `img` element*][html-img] in the HTML spec for more info. //! -//! The `label`, `destination`, and `title` parts are interpreted as the +//! The `destination`, `label`, and `title` parts are interpreted as the //! [string][] content type. //! That means that [character escapes][character_escape] and //! [character references][character_reference] are allowed. @@ -28,7 +28,7 @@ //! Definitions match to references through their label. //! To match, both labels must be equal after normalizing with //! [`normalize_identifier`][normalize_identifier]. -//! One definitions can match to multiple references. +//! One definition can match to multiple references. //! Multiple definitions with the same, normalized, identifier are ignored: the //! first definition is preferred. //! To illustrate, the definition with a destination of `x` wins: @@ -53,7 +53,7 @@ //! //! For info on how to encode characters in URLs, see //! [`destination`][destination]. -//! For info on how to characters are encoded as `href` on `<a>` or `src` on +//! For info on how characters are encoded as `href` on `<a>` or `src` on //! `<img>` when compiling, see //! [`sanitize_uri`][sanitize_uri]. //! |