Enum pulldown_typst::Tag
source · pub enum Tag<'a> {
Paragraph,
Show(ShowType, CowStr<'a>, Option<(CowStr<'a>, CowStr<'a>, CowStr<'a>)>, Option<CowStr<'a>>),
Heading(NonZeroU8, TableOfContents, Bookmarks),
CodeBlock(Option<CowStr<'a>>, CodeBlockDisplay),
BulletList(Option<&'a str>, bool),
NumberedList(u64, Option<NumberingPattern<'a>>, bool),
Item,
Emphasis,
Strong,
Strikethrough,
Link(LinkType, CowStr<'a>),
}
Expand description
Tags for elements that can contain other elements.
Variants§
Paragraph
A paragraph of text and other inline elements.
Show(ShowType, CowStr<'a>, Option<(CowStr<'a>, CowStr<'a>, CowStr<'a>)>, Option<CowStr<'a>>)
A show rule.
Heading(NonZeroU8, TableOfContents, Bookmarks)
A heading. The first field indicates the level of the heading, the second if it should be included in outline, and the third if it should be included in bookmarks.
CodeBlock(Option<CowStr<'a>>, CodeBlockDisplay)
A code block. The first argument is the fenced value if it exists, the second is how it should be displayed.
BulletList(Option<&'a str>, bool)
A bullted list. The first field indicates the marker to use, the second is if tight is desired. Contains only list items.
NumberedList(u64, Option<NumberingPattern<'a>>, bool)
A numbered / enumerated list (also called an enum by typst). The first field indicates the starting number, the second is the numbering pattern, the third is if tight is desired. Contains only list items.
Item
A list item.
Emphasis
Strong
Strikethrough
Link(LinkType, CowStr<'a>)
A link. The first field is the type and the second is the destination URL.