Create structure for angle links.

This commit is contained in:
Tom Alexander
2023-07-13 22:42:42 -04:00
parent 79ac835641
commit ed8b1405db
5 changed files with 55 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ use super::plain_text::plain_text;
use super::regular_link::regular_link;
use super::Context;
use crate::error::Res;
use crate::parser::angle_link::angle_link;
use crate::parser::object::Object;
use crate::parser::plain_link::plain_link;
use crate::parser::radio_link::radio_link;
@@ -33,6 +34,7 @@ pub fn standard_set_object<'r, 's>(
Object::RegularLink,
),
map(parser_with_context!(plain_link)(context), Object::PlainLink),
map(parser_with_context!(angle_link)(context), Object::AngleLink),
map(parser_with_context!(plain_text)(context), Object::PlainText),
))(input)
}
@@ -69,6 +71,7 @@ pub fn any_object_except_plain_text<'r, 's>(
Object::RegularLink,
),
map(parser_with_context!(plain_link)(context), Object::PlainLink),
map(parser_with_context!(angle_link)(context), Object::AngleLink),
))(input)
}