aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/blank_line.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 13:27:16 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 13:27:16 +0200
commitc9f75249b83839130ffbc3b6dd175b0e31008cb7 (patch)
tree55012a12979e5960845a611162a9a3e340627fa5 /src/construct/blank_line.rs
parent2100b41ee330ef6b088b4d7efdf8ea589a650ceb (diff)
downloadmarkdown-rs-c9f75249b83839130ffbc3b6dd175b0e31008cb7.tar.gz
markdown-rs-c9f75249b83839130ffbc3b6dd175b0e31008cb7.tar.bz2
markdown-rs-c9f75249b83839130ffbc3b6dd175b0e31008cb7.zip
Refactor examples of states
Diffstat (limited to '')
-rw-r--r--src/construct/blank_line.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/construct/blank_line.rs b/src/construct/blank_line.rs
index bbfb61f..cf51aec 100644
--- a/src/construct/blank_line.rs
+++ b/src/construct/blank_line.rs
@@ -40,8 +40,10 @@ use crate::tokenizer::{Code, State, StateFnResult, Tokenizer};
/// > 👉 **Note**: `␠` represents a space character.
///
/// ```markdown
-/// |␠␠
-/// |
+/// > | ␠␠
+/// ^
+/// > |
+/// ^
/// ```
pub fn start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
tokenizer.attempt_opt(space_or_tab(), after)(tokenizer, code)
@@ -49,11 +51,11 @@ pub fn start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
/// After zero or more spaces or tabs, before a line ending or EOF.
///
-/// > 👉 **Note**: `␠` represents a space character.
-///
/// ```markdown
-/// |␠␠
-/// |
+/// > | ␠␠
+/// ^
+/// > |
+/// ^
/// ```
fn after(_tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
match code {