aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/definition.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-21 18:09:24 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-21 18:09:24 +0200
commitf5bb9ab57b9153775a9ffca7322173ec424d4669 (patch)
tree5364784b9634e5debc6cd43e7e72c97f822d8211 /src/construct/definition.rs
parentd1063268e62633a334bb9464f7cba2385da5812d (diff)
downloadmarkdown-rs-f5bb9ab57b9153775a9ffca7322173ec424d4669.tar.gz
markdown-rs-f5bb9ab57b9153775a9ffca7322173ec424d4669.tar.bz2
markdown-rs-f5bb9ab57b9153775a9ffca7322173ec424d4669.zip
Add support for capping destination (raw) balance
Diffstat (limited to '')
-rw-r--r--src/construct/definition.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/construct/definition.rs b/src/construct/definition.rs
index 69d8d9b..f8dc249 100644
--- a/src/construct/definition.rs
+++ b/src/construct/definition.rs
@@ -173,6 +173,7 @@ fn destination_before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
t,
c,
DestinationOptions {
+ limit: usize::MAX,
destination: TokenType::DefinitionDestination,
literal: TokenType::DefinitionDestinationLiteral,
marker: TokenType::DefinitionDestinationLiteralMarker,