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 | |
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')
-rw-r--r-- | src/construct/gfm_label_start_footnote.rs | 5 | ||||
-rw-r--r-- | src/construct/raw_flow.rs | 5 | ||||
-rw-r--r-- | src/construct/raw_text.rs | 1 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/construct/gfm_label_start_footnote.rs b/src/construct/gfm_label_start_footnote.rs index a3a0df6..c123bfc 100644 --- a/src/construct/gfm_label_start_footnote.rs +++ b/src/construct/gfm_label_start_footnote.rs @@ -20,8 +20,9 @@ //! //! ## Tokens //! -//! * [`LabelImage`][Name::LabelImage] -//! * To do. +//! * [`GfmFootnoteCallLabel`][Name::GfmFootnoteCallLabel] +//! * [`GfmFootnoteCallMarker`][Name::GfmFootnoteCallMarker] +//! * [`LabelMarker`][Name::LabelMarker] //! //! ## References //! 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 }) diff --git a/src/construct/raw_text.rs b/src/construct/raw_text.rs index 1a4d03c..6a35608 100644 --- a/src/construct/raw_text.rs +++ b/src/construct/raw_text.rs @@ -112,7 +112,6 @@ //! [text]: crate::construct::text //! [code_indented]: crate::construct::code_indented //! [raw_flow]: crate::construct::raw_flow -//! [math_flow]: # "to do" //! [html_code]: https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-code-element use crate::event::Name; |