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>,
|
context: Context<'r, 's>,
|
||||||
input: &'s str,
|
input: &'s str,
|
||||||
) -> Res<&'s str, Vec<Object<'s>>> {
|
) -> Res<&'s str, Vec<Object<'s>>> {
|
||||||
let (remaining, _opening_bracket) = tag("[[")(input)?;
|
|
||||||
let parser_context =
|
let parser_context =
|
||||||
context.with_additional_node(ContextElement::ExitMatcherNode(ExitMatcherNode {
|
context.with_additional_node(ContextElement::ExitMatcherNode(ExitMatcherNode {
|
||||||
class: ExitClass::Beta,
|
class: ExitClass::Beta,
|
||||||
@ -89,7 +88,7 @@ pub fn description<'r, 's>(
|
|||||||
parser_with_context!(exit_matcher_parser)(&parser_context),
|
parser_with_context!(exit_matcher_parser)(&parser_context),
|
||||||
),
|
),
|
||||||
|(children, _exit_contents)| !children.is_empty(),
|
|(children, _exit_contents)| !children.is_empty(),
|
||||||
)(remaining)?;
|
)(input)?;
|
||||||
|
|
||||||
Ok((remaining, children))
|
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