Skip to main content

orbital_markdown/
mention_style.rs

1/// HTML anchor template for resolved `@[label](id)` mention refs.
2#[derive(Clone, Copy, Debug, PartialEq, Eq)]
3pub struct MentionLinkStyle {
4    pub anchor_class: &'static str,
5}
6
7impl MentionLinkStyle {
8    pub fn history() -> Self {
9        Self {
10            anchor_class: "orbital-history__mention-ref",
11        }
12    }
13}
14
15impl Default for MentionLinkStyle {
16    fn default() -> Self {
17        Self::history()
18    }
19}