Allow matching bolds in radio link targets.

This commit is contained in:
Tom Alexander 2023-07-14 18:27:09 -04:00
parent 4ba1e63dde
commit 7ca8beac5a
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,11 @@ pub fn rematch_target<'x, 'r, 's>(
for original_object in target {
match original_object {
// TODO: The rest of the minimal set of objects.
Object::Bold(bold) => {
let (new_remaining, new_match) = bold.rematch_object(context, remaining)?;
remaining = new_remaining;
new_matches.push(new_match);
}
Object::PlainText(plaintext) => {
let (new_remaining, new_match) = plaintext.rematch_object(context, remaining)?;
remaining = new_remaining;