mirror of
https://github.com/typst/typst
synced 2025-05-17 10:35:28 +08:00
Fix tag list order
This commit is contained in:
parent
76d4c39ce4
commit
208711203e
@ -48,7 +48,9 @@ pub enum Tag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Tag {
|
impl Tag {
|
||||||
/// The list of all tags.
|
/// The list of all tags, in the same order as thy are defined.
|
||||||
|
///
|
||||||
|
/// Can be used as the counter-part to `tag as usize`.
|
||||||
pub const LIST: &'static [Tag] = &[
|
pub const LIST: &'static [Tag] = &[
|
||||||
Self::Comment,
|
Self::Comment,
|
||||||
Self::Punctuation,
|
Self::Punctuation,
|
||||||
@ -57,13 +59,13 @@ impl Tag {
|
|||||||
Self::Emph,
|
Self::Emph,
|
||||||
Self::Link,
|
Self::Link,
|
||||||
Self::Raw,
|
Self::Raw,
|
||||||
Self::MathDelimiter,
|
Self::Label,
|
||||||
Self::MathOperator,
|
Self::Ref,
|
||||||
Self::Heading,
|
Self::Heading,
|
||||||
Self::ListMarker,
|
Self::ListMarker,
|
||||||
Self::ListTerm,
|
Self::ListTerm,
|
||||||
Self::Label,
|
Self::MathDelimiter,
|
||||||
Self::Ref,
|
Self::MathOperator,
|
||||||
Self::Keyword,
|
Self::Keyword,
|
||||||
Self::Operator,
|
Self::Operator,
|
||||||
Self::Number,
|
Self::Number,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user