mirror of
https://github.com/typst/typst
synced 2025-05-17 02:25:27 +08:00
Fix tag list order
This commit is contained in:
parent
76d4c39ce4
commit
208711203e
@ -48,7 +48,9 @@ pub enum 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] = &[
|
||||
Self::Comment,
|
||||
Self::Punctuation,
|
||||
@ -57,13 +59,13 @@ impl Tag {
|
||||
Self::Emph,
|
||||
Self::Link,
|
||||
Self::Raw,
|
||||
Self::MathDelimiter,
|
||||
Self::MathOperator,
|
||||
Self::Label,
|
||||
Self::Ref,
|
||||
Self::Heading,
|
||||
Self::ListMarker,
|
||||
Self::ListTerm,
|
||||
Self::Label,
|
||||
Self::Ref,
|
||||
Self::MathDelimiter,
|
||||
Self::MathOperator,
|
||||
Self::Keyword,
|
||||
Self::Operator,
|
||||
Self::Number,
|
||||
|
Loading…
x
Reference in New Issue
Block a user