diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-09-05 15:20:00 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-09-05 15:22:01 +0200 |
commit | 57673d17336371ca5a98cd8d0ce2b01137b43431 (patch) | |
tree | 9b015d887d5df2de6799e44e2bc100c91d0ecb5c /src/construct/raw_flow.rs | |
parent | 3d00bf57a225369120fd98bee36f65a541260da1 (diff) | |
download | markdown-rs-57673d17336371ca5a98cd8d0ce2b01137b43431.tar.gz markdown-rs-57673d17336371ca5a98cd8d0ce2b01137b43431.tar.bz2 markdown-rs-57673d17336371ca5a98cd8d0ce2b01137b43431.zip |
Fix some todos
Diffstat (limited to 'src/construct/raw_flow.rs')
-rw-r--r-- | src/construct/raw_flow.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/construct/raw_flow.rs b/src/construct/raw_flow.rs index 7eaac0c..395d0ae 100644 --- a/src/construct/raw_flow.rs +++ b/src/construct/raw_flow.rs @@ -143,7 +143,7 @@ use crate::event::{Content, Link, Name}; use crate::state::{Name as StateName, State}; use crate::tokenizer::Tokenizer; use crate::util::{ - constant::{CODE_FENCED_SEQUENCE_SIZE_MIN, TAB_SIZE}, + constant::{CODE_FENCED_SEQUENCE_SIZE_MIN, MATH_FLOW_SEQUENCE_SIZE_MIN, TAB_SIZE}, slice::{Position, Slice}, }; @@ -253,10 +253,9 @@ pub fn sequence_open(tokenizer: &mut Tokenizer) -> State { tokenizer.consume(); State::Next(StateName::RawFlowSequenceOpen) } - // To do: constant. else if tokenizer.tokenize_state.size < (if tokenizer.tokenize_state.marker == b'$' { - 2 + MATH_FLOW_SEQUENCE_SIZE_MIN } else { CODE_FENCED_SEQUENCE_SIZE_MIN }) |