aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/constant.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-05 15:20:00 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-05 15:22:01 +0200
commit57673d17336371ca5a98cd8d0ce2b01137b43431 (patch)
tree9b015d887d5df2de6799e44e2bc100c91d0ecb5c /src/util/constant.rs
parent3d00bf57a225369120fd98bee36f65a541260da1 (diff)
downloadmarkdown-rs-57673d17336371ca5a98cd8d0ce2b01137b43431.tar.gz
markdown-rs-57673d17336371ca5a98cd8d0ce2b01137b43431.tar.bz2
markdown-rs-57673d17336371ca5a98cd8d0ce2b01137b43431.zip
Fix some todos
Diffstat (limited to 'src/util/constant.rs')
-rw-r--r--src/util/constant.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/constant.rs b/src/util/constant.rs
index d6a6651..a9a7895 100644
--- a/src/util/constant.rs
+++ b/src/util/constant.rs
@@ -248,6 +248,13 @@ pub const LINK_REFERENCE_SIZE_MAX: usize = 999;
/// [list-item]: crate::construct::list_item
pub const LIST_ITEM_VALUE_SIZE_MAX: usize = 10;
+/// The number of markers needed for [math (flow)][raw_flow] to form.
+///
+/// Unlike code (fenced), this number is `2`.
+///
+/// [raw_flow]: crate::construct::raw_flow
+pub const MATH_FLOW_SEQUENCE_SIZE_MIN: usize = 2;
+
/// Maximum allowed unbalanced parens in destination.
///
/// There can be many balanced parens, but if there are 33 opens that were not