diff options
| author | 2022-07-18 16:31:14 +0200 | |
|---|---|---|
| committer | 2022-07-18 16:31:14 +0200 | |
| commit | 5403261e8213f68633a09fc3e9bc2e6e2cd777b2 (patch) | |
| tree | bb3a6419ef42f7611c2cb24fe7024228f579331b /src/content | |
| parent | 03544cafaa82ba4bd7e0bc3372fc59549a8dc0cc (diff) | |
| download | markdown-rs-5403261e8213f68633a09fc3e9bc2e6e2cd777b2.tar.gz markdown-rs-5403261e8213f68633a09fc3e9bc2e6e2cd777b2.tar.bz2 markdown-rs-5403261e8213f68633a09fc3e9bc2e6e2cd777b2.zip | |
Add support for turning off constructs
Diffstat (limited to 'src/content')
| -rw-r--r-- | src/content/string.rs | 1 | ||||
| -rw-r--r-- | src/content/text.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/content/string.rs b/src/content/string.rs index cc8ee53..f2650df 100644 --- a/src/content/string.rs +++ b/src/content/string.rs @@ -19,6 +19,7 @@ use crate::construct::{ use crate::tokenizer::{Code, State, StateFnResult, Tokenizer}; const MARKERS: [Code; 5] = [ + // To do: build this vec based on whether they are enabled? Code::VirtualSpace, // `whitespace` Code::Char('\t'), // `whitespace` Code::Char(' '), // `whitespace` diff --git a/src/content/text.rs b/src/content/text.rs index cf630f1..f797b11 100644 --- a/src/content/text.rs +++ b/src/content/text.rs @@ -58,6 +58,7 @@ pub fn start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { Code::None => (State::Ok, None), _ => tokenizer.attempt_n( vec