diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-07 17:56:37 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-07 17:56:37 +0200 |
commit | 1c3b6e900d9b23e8a1f34f1c5b7b9657bd7c1451 (patch) | |
tree | d35d3b539ce32ae97c52a40628d2ebcc8769b7b2 /src/tokenizer.rs | |
parent | 0e58191dd7cdbdc632866c8315117ccc68103aad (diff) | |
download | markdown-rs-1c3b6e900d9b23e8a1f34f1c5b7b9657bd7c1451.tar.gz markdown-rs-1c3b6e900d9b23e8a1f34f1c5b7b9657bd7c1451.tar.bz2 markdown-rs-1c3b6e900d9b23e8a1f34f1c5b7b9657bd7c1451.zip |
Add docs for block quote tokens
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r-- | src/tokenizer.rs | 77 |
1 files changed, 76 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 069134a..c1a23eb 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -113,10 +113,85 @@ pub enum TokenType { /// ^ /// ``` BlankLineEnding, + /// Whole block quote. + /// + /// ## Info + /// + /// * **Context**: + /// [document content][crate::content::document] + /// * **Content model**: + /// [`BlockQuotePrefix`][TokenType::BlockQuotePrefix], + /// [flow content][crate::content::flow] + /// * **Construct**: + /// [`block_quote`][crate::construct::block_quote] + /// + /// ## Example + /// + /// ```markdown + /// > | > a + /// ^^^ + /// > | b + /// ^ + /// ``` BlockQuote, + /// Block quote marker. + /// + /// ## Info + /// + /// * **Context**: + /// [`BlockQuotePrefix`][TokenType::BlockQuotePrefix] + /// * **Content model**: + /// void + /// * **Construct**: + /// [`block_quote`][crate::construct::block_quote] + /// + /// ## Example + /// + /// ```markdown + /// > | > a + /// ^ + /// | b + /// ``` BlockQuoteMarker, + /// Block quote prefix. + /// + /// ## Info + /// + /// * **Context**: + /// [`BlockQuote`][TokenType::BlockQuote] + /// * **Content model**: + /// [`BlockQuoteMarker`][TokenType::BlockQuoteMarker], + /// [`BlockQuoteWhitespace`][TokenType::BlockQuoteWhitespace] + /// * **Construct**: + /// [`block_quote`][crate::construct::block_quote] + /// + /// ## Example + /// + /// ```markdown + /// > | > a + /// ^^ + /// | b + /// ``` BlockQuotePrefix, - BlockQuotePrefixWhitespace, + /// Block quote white space. + /// + /// ## Info + /// + /// * **Context**: + /// [`BlockQuotePrefix`][TokenType::BlockQuotePrefix] + /// * **Content model**: + /// void + /// * **Construct**: + /// [`block_quote`][crate::construct::block_quote] + /// + /// ## Example + /// + /// ```markdown + /// > | > a + /// ^ + /// | b + /// ``` + BlockQuoteWhitespace, /// Whole character escape. /// /// ## Info |