mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
parent
a44141be2e
commit
778802e5a8
@ -21,7 +21,7 @@ use typst::eval::{eval_string, Bytes, CastInfo, EvalMode, Reflect};
|
|||||||
use typst::font::FontStyle;
|
use typst::font::FontStyle;
|
||||||
use typst::util::{option_eq, PicoStr};
|
use typst::util::{option_eq, PicoStr};
|
||||||
|
|
||||||
use super::{CitationForm, CiteGroup, LocalName};
|
use super::{CitationForm, CiteGroup, LinkElem, LocalName};
|
||||||
use crate::layout::{
|
use crate::layout::{
|
||||||
BlockElem, GridElem, HElem, PadElem, ParElem, Sizing, TrackSizings, VElem,
|
BlockElem, GridElem, HElem, PadElem, ParElem, Sizing, TrackSizings, VElem,
|
||||||
};
|
};
|
||||||
@ -953,7 +953,7 @@ impl ElemRenderer<'_> {
|
|||||||
/// Display a link.
|
/// Display a link.
|
||||||
fn display_link(&self, text: &hayagriva::Formatted, url: &str) -> Content {
|
fn display_link(&self, text: &hayagriva::Formatted, url: &str) -> Content {
|
||||||
let dest = Destination::Url(url.into());
|
let dest = Destination::Url(url.into());
|
||||||
self.display_formatted(text).linked(dest)
|
LinkElem::new(dest.into(), self.display_formatted(text)).pack()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Display transparent pass-through content.
|
/// Display transparent pass-through content.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user