From 6e20c3e79d4270fafb13a63af51eaffaa45c11e1 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 15 Aug 2022 11:24:06 +0200 Subject: Refactor to rename list construct to list item --- src/constant.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/constant.rs') diff --git a/src/constant.rs b/src/constant.rs index 6ef851c..47cb50c 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -202,7 +202,8 @@ pub const HTML_RAW_SIZE_MAX: usize = 8; /// To safeguard performance, labels are capped at a large number: `999`. pub const LINK_REFERENCE_SIZE_MAX: usize = 999; -/// The max number of decimals allowed to form an (ordered) [list][] item. +/// The max number of decimals allowed to form an (ordered) +/// [list item][list-item]. /// /// `CommonMark` caps this at 10 digits (9 is fine, 10 not). /// This limit is imposed because bigger numbers result in integer overflows @@ -212,7 +213,7 @@ pub const LINK_REFERENCE_SIZE_MAX: usize = 999; /// /// * [*ยง 5.2 List items* in `CommonMark`](https://spec.commonmark.org/0.30/#ordered-list-marker) /// -/// [list]: crate::construct::list +/// [list-item]: crate::construct::list_item pub const LIST_ITEM_VALUE_SIZE_MAX: usize = 10; /// Maximum allowed unbalanced parens in destination. -- cgit