diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-09 12:49:11 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-09 12:49:11 +0200 |
commit | 433680ae0914da8921c4ee762fdc93e7b70cf9f1 (patch) | |
tree | 760a8eb29afbc17059bdeb682457b8efa2ade7a1 /src/compiler.rs | |
parent | 76aaa25e1d6a87c977a23437e67e6f38b1358b4d (diff) | |
download | markdown-rs-433680ae0914da8921c4ee762fdc93e7b70cf9f1.tar.gz markdown-rs-433680ae0914da8921c4ee762fdc93e7b70cf9f1.tar.bz2 markdown-rs-433680ae0914da8921c4ee762fdc93e7b70cf9f1.zip |
Add basic support for interrupting content
Diffstat (limited to '')
-rw-r--r-- | src/compiler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index 166950e..4f362b8 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -62,7 +62,7 @@ pub fn compile(events: &[Event], codes: &[Code], options: &CompileOptions) -> St ignore_encode = true; } } - TokenType::ContentPhrasing + TokenType::ContentChunk | TokenType::AtxHeading | TokenType::AtxHeadingSequence | TokenType::AtxHeadingWhitespace @@ -280,7 +280,7 @@ pub fn compile(events: &[Event], codes: &[Code], options: &CompileOptions) -> St } // To do: `ContentPhrasing` should be parsed as phrasing first. // This branch below currently acts as the resulting `data` tokens. - TokenType::ContentPhrasing + TokenType::ContentChunk // To do: `ChunkString` does not belong here. Remove it when subtokenization is supported. | TokenType::ChunkString | TokenType::Data |