Support text markup at the start of a regular link description.
Some checks failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed

This commit is contained in:
Tom Alexander
2023-10-09 14:02:27 -04:00
parent adc5a383c3
commit 840dc0a750
4 changed files with 14 additions and 10 deletions

View File

@@ -295,7 +295,7 @@ fn pre<'b, 'g, 'r, 's>(
let radio_target_start = context
.iter()
.find_map(|c| match c {
ContextElement::StartRadioTarget(text) => Some(text),
ContextElement::StartTextSection(text) => Some(text),
_ => None,
})
.map(|text| text.get_byte_offset());