mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-04-01 01:25:34 +00:00
16 lines
322 B
Rust
16 lines
322 B
Rust
/// [Header](https://geminiprotocol.net/docs/gemtext-specification.gmi#heading-lines) type holder
|
|
pub enum Level {
|
|
H1,
|
|
H2,
|
|
H3,
|
|
}
|
|
|
|
impl Level {
|
|
pub fn as_tag(&self) -> &str {
|
|
match self {
|
|
Level::H1 => "#",
|
|
Level::H2 => "##",
|
|
Level::H3 => "###",
|
|
}
|
|
}
|
|
}
|