Allow matching bolds in radio link targets.
This commit is contained in:
parent
4ba1e63dde
commit
7ca8beac5a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user