From 769963fd3fe9e7027915fc0ddfc2b0e881aa6952 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 20 Jun 2022 18:30:34 +0200 Subject: Add some more enabled tests --- src/construct/character_reference.rs | 2 -- src/construct/heading_setext.rs | 1 - src/construct/partial_title.rs | 1 - src/content/flow.rs | 1 - src/content/string.rs | 2 -- 5 files changed, 7 deletions(-) (limited to 'src') diff --git a/src/construct/character_reference.rs b/src/construct/character_reference.rs index af9c02e..c946dae 100644 --- a/src/construct/character_reference.rs +++ b/src/construct/character_reference.rs @@ -51,8 +51,6 @@ //! [decode_numeric]: crate::util::decode_character_reference::decode_numeric //! [character_reference_names]: crate::constant::CHARACTER_REFERENCE_NAMES //! [html]: https://html.spec.whatwg.org/multipage/parsing.html#character-reference-state -//! -//! use crate::constant::{ CHARACTER_REFERENCE_DECIMAL_SIZE_MAX, CHARACTER_REFERENCE_HEXADECIMAL_SIZE_MAX, diff --git a/src/construct/heading_setext.rs b/src/construct/heading_setext.rs index 579fa71..a418041 100644 --- a/src/construct/heading_setext.rs +++ b/src/construct/heading_setext.rs @@ -126,7 +126,6 @@ fn text_inside(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { /// ``` fn text_continue(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { // Needed to connect the text. - // To do: does it work? tokenizer.enter(TokenType::HeadingSetextText); tokenizer.events.pop(); tokenizer.events.pop(); diff --git a/src/construct/partial_title.rs b/src/construct/partial_title.rs index 322a3e6..22c3209 100644 --- a/src/construct/partial_title.rs +++ b/src/construct/partial_title.rs @@ -173,7 +173,6 @@ fn title(tokenizer: &mut Tokenizer, code: Code, kind: Kind) -> StateFnResult { tokenizer.exit(TokenType::ChunkString); at_break(tokenizer, code, kind, true) } - // To do: limit blank lines. Code::CarriageReturnLineFeed | Code::Char('\r' | '\n') => { tokenizer.consume(code); tokenizer.exit(TokenType::ChunkString); diff --git a/src/content/flow.rs b/src/content/flow.rs index f4af4ea..481c8ff 100644 --- a/src/content/flow.rs +++ b/src/content/flow.rs @@ -94,7 +94,6 @@ fn blank_line_after(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { fn initial_before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { match code { Code::None => (State::Ok, None), - // To do: should all flow just start before the prefix? _ => tokenizer.attempt_7( code_indented, code_fenced, diff --git a/src/content/string.rs b/src/content/string.rs index efb6e60..c3e825e 100644 --- a/src/content/string.rs +++ b/src/content/string.rs @@ -17,8 +17,6 @@ use crate::construct::{ }; use crate::tokenizer::{Code, State, StateFnResult, TokenType, Tokenizer}; -// To do: line endings? - /// Before string. /// /// ```markdown -- cgit