From a6b317ac7fbc95b8584056b3cebffbf9d1bba2c6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 26 Jul 2022 16:37:13 +0200 Subject: Refactor to drastically improve perf around whitespace --- src/construct/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/construct/mod.rs') diff --git a/src/construct/mod.rs b/src/construct/mod.rs index be9dfe3..569c609 100644 --- a/src/construct/mod.rs +++ b/src/construct/mod.rs @@ -25,7 +25,6 @@ //! * [code (text)][code_text] //! * [definition][] //! * [hard break (escape)][hard_break_escape] -//! * [hard break (trailing)][hard_break_trailing] //! * [heading (atx)][heading_atx] //! * [heading (setext)][heading_setext] //! * [html (flow)][html_flow] @@ -37,6 +36,9 @@ //! * [paragraph][] //! * [thematic break][thematic_break] //! +//! > 👉 **Note**: for performance reasons, hard break (trailing) is formed by +//! > [whitespace][partial_whitespace]. +//! //! There are also several routines used in different places: //! //! * [data][partial_data] @@ -73,7 +75,6 @@ pub mod code_indented; pub mod code_text; pub mod definition; pub mod hard_break_escape; -pub mod hard_break_trailing; pub mod heading_atx; pub mod heading_setext; pub mod html_flow; -- cgit