Fix matching of description in links.
This commit is contained in:
parent
b4d4453186
commit
87be28ed15
@ -77,7 +77,6 @@ pub fn description<'r, 's>(
|
||||
context: Context<'r, 's>,
|
||||
input: &'s str,
|
||||
) -> Res<&'s str, Vec<Object<'s>>> {
|
||||
let (remaining, _opening_bracket) = tag("[[")(input)?;
|
||||
let parser_context =
|
||||
context.with_additional_node(ContextElement::ExitMatcherNode(ExitMatcherNode {
|
||||
class: ExitClass::Beta,
|
||||
@ -89,7 +88,7 @@ pub fn description<'r, 's>(
|
||||
parser_with_context!(exit_matcher_parser)(&parser_context),
|
||||
),
|
||||
|(children, _exit_contents)| !children.is_empty(),
|
||||
)(remaining)?;
|
||||
)(input)?;
|
||||
|
||||
Ok((remaining, children))
|
||||
}
|
||||
|
@ -1 +1,3 @@
|
||||
foo *bar baz * lorem* ipsum
|
||||
[[https://fizz.buzz/]]
|
||||
|
||||
[[https://fizz.buzz][super cool website]]
|
||||
|
Loading…
Reference in New Issue
Block a user