fixup! 72be61726056f2c5b1755fd19a8dc92663398158
This commit is contained in:
parent
3672a03a0c
commit
1dc339403d
1 changed files with 11 additions and 12 deletions
23
src/lib.rs
23
src/lib.rs
|
@ -52,12 +52,6 @@ pub enum Container<'s> {
|
||||||
Paragraph,
|
Paragraph,
|
||||||
/// A heading.
|
/// A heading.
|
||||||
Heading { level: u8 },
|
Heading { level: u8 },
|
||||||
/// A link with a destination URL.
|
|
||||||
Link(&'s str, LinkType),
|
|
||||||
/// An image.
|
|
||||||
Image(&'s str),
|
|
||||||
/// An inline divider element.
|
|
||||||
Span,
|
|
||||||
/// A cell element of row within a table.
|
/// A cell element of row within a table.
|
||||||
TableCell,
|
TableCell,
|
||||||
/// A term within a description list.
|
/// A term within a description list.
|
||||||
|
@ -66,17 +60,23 @@ pub enum Container<'s> {
|
||||||
RawBlock { format: &'s str },
|
RawBlock { format: &'s str },
|
||||||
/// A block with code in a specific language.
|
/// A block with code in a specific language.
|
||||||
CodeBlock { language: Option<&'s str> },
|
CodeBlock { language: Option<&'s str> },
|
||||||
|
/// An inline divider element.
|
||||||
|
Span,
|
||||||
|
/// An inline link with a destination URL.
|
||||||
|
Link(&'s str, LinkType),
|
||||||
|
/// An inline image.
|
||||||
|
Image(&'s str),
|
||||||
/// A subscripted element.
|
/// A subscripted element.
|
||||||
Subscript,
|
Subscript,
|
||||||
/// A superscripted element.
|
/// A superscripted element.
|
||||||
Superscript,
|
Superscript,
|
||||||
/// An inserted element.
|
/// An inserted inline element.
|
||||||
Insert,
|
Insert,
|
||||||
/// A deleted element.
|
/// A deleted inline element.
|
||||||
Delete,
|
Delete,
|
||||||
/// An element emphasized with a bold typeface.
|
/// An inline element emphasized with a bold typeface.
|
||||||
Strong,
|
Strong,
|
||||||
/// An emphasized element.
|
/// An emphasized inline element.
|
||||||
Emphasis,
|
Emphasis,
|
||||||
/// A highlighted inline element.
|
/// A highlighted inline element.
|
||||||
Mark,
|
Mark,
|
||||||
|
@ -168,7 +168,6 @@ pub enum List {
|
||||||
Ordered {
|
Ordered {
|
||||||
kind: OrderedListKind,
|
kind: OrderedListKind,
|
||||||
start: u32,
|
start: u32,
|
||||||
format: OrderedListFormat,
|
|
||||||
},
|
},
|
||||||
Description,
|
Description,
|
||||||
Task(bool),
|
Task(bool),
|
||||||
|
@ -189,7 +188,7 @@ pub enum OrderedListKind {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub enum OrderedListFormat {
|
pub enum OrderedListStyle {
|
||||||
/// Number is followed by a period, e.g. `1.`.
|
/// Number is followed by a period, e.g. `1.`.
|
||||||
Period,
|
Period,
|
||||||
/// Number is followed by a closing parenthesis, e.g. `1)`.
|
/// Number is followed by a closing parenthesis, e.g. `1)`.
|
||||||
|
|
Loading…
Reference in a new issue