mirror of
https://github.com/typst/typst
synced 2025-07-27 14:27:56 +08:00
feat: generate paragraphs
This commit is contained in:
parent
0bc39338a1
commit
f324accff9
@ -15,7 +15,7 @@ use typst_library::introspection::Location;
|
||||
use typst_library::layout::RepeatElem;
|
||||
use typst_library::model::{
|
||||
Destination, FigureCaption, FigureElem, HeadingElem, Outlinable, OutlineBody,
|
||||
OutlineEntry, TableCell, TableElem,
|
||||
OutlineEntry, ParElem, TableCell, TableElem,
|
||||
};
|
||||
use typst_library::pdf::{ArtifactElem, ArtifactKind, PdfTagElem, PdfTagKind};
|
||||
use typst_library::visualize::ImageElem;
|
||||
@ -108,6 +108,8 @@ pub(crate) fn handle_start(gc: &mut GlobalContext, elem: &Content) -> SourceResu
|
||||
let link_id = gc.tags.next_link_id();
|
||||
push_stack(gc, loc, StackEntryKind::Link(link_id, link.clone()))?;
|
||||
return Ok(());
|
||||
} else if let Some(_) = elem.to_packed::<ParElem>() {
|
||||
TagKind::P.into()
|
||||
} else {
|
||||
return Ok(());
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user