diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-26 16:37:13 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-26 16:37:13 +0200 |
commit | a6b317ac7fbc95b8584056b3cebffbf9d1bba2c6 (patch) | |
tree | fd7be2fe6d7355d3aafaf8b731f0e0b48624debc /src/constant.rs | |
parent | 297784cb925b1196d89479fa24c898703ae598d6 (diff) | |
download | markdown-rs-a6b317ac7fbc95b8584056b3cebffbf9d1bba2c6.tar.gz markdown-rs-a6b317ac7fbc95b8584056b3cebffbf9d1bba2c6.tar.bz2 markdown-rs-a6b317ac7fbc95b8584056b3cebffbf9d1bba2c6.zip |
Refactor to drastically improve perf around whitespace
Diffstat (limited to 'src/constant.rs')
-rw-r--r-- | src/constant.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/constant.rs b/src/constant.rs index b18bf3f..b8b36ad 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -68,9 +68,9 @@ pub const CHARACTER_REFERENCE_NAMED_SIZE_MAX: usize = 31; pub const CODE_FENCED_SEQUENCE_SIZE_MIN: usize = 3; /// The number of preceding spaces needed for a [hard break -/// (trailing)][hard_break_trailing] to form. +/// (trailing)][whitespace] to form. /// -/// [hard_break_trailing]: crate::construct::hard_break_trailing +/// [whitespace]: crate::construct::partial_whitespace pub const HARD_BREAK_PREFIX_SIZE_MIN: usize = 2; /// The max number of markers allowed to form a [heading (atx)][heading_atx]. |