pub enum InlineMarkKind {
EmphStart {
strong: bool,
},
EmphEnd,
BulletStart,
BulletEnd,
BreakHyphen,
}Expand description
The marker kind a PureHorzBox::InlineMark carries. strong is chosen AT
THE WRAP SITE (which stdlib command calls inline-mark with which tag),
not recovered from the box tree: \emph -> strong: false (<em>),
\bold/\strong -> strong: true (<strong>).
Variants§
EmphStart
Opens <em> (strong = false) or <strong> (strong = true).
EmphEnd
Closes the innermost open emphasis span.
BulletStart
Opens a fence around a drawn bullet/number glyph run (itemize.satyh’s
make-bullet/enumerate-item’s numeral) — the reflow walker drops
everything between this and the matching BulletEnd, since the real
<ul>/<ol> marker replaces it.
BulletEnd
Closes the bullet fence.
BreakHyphen
Immediately precedes the pre_break slot the LINE BREAKER spliced onto
a line it chose to end here — the hyphen that prints before the break.
It exists so a reflowing renderer can undo the hyphenation exactly. The
splice produces an ordinary InnerString, indistinguishable from a
hyphen the author typed, so rejoining the lines had to guess from the
shape of the text — and the guess deleted real hyphens: a paragraph
wrapping at code-printer came out as codeprinter. Emitted by
linebreak::line_content, zero-width and rendered by nothing, exactly
like the other marks here.
Trait Implementations§
Source§impl Clone for InlineMarkKind
impl Clone for InlineMarkKind
Source§fn clone(&self) -> InlineMarkKind
fn clone(&self) -> InlineMarkKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more