mdbook_playscript/
lib.rs

1pub mod counter;
2
3use pulldown_cmark::{Event, CowStr};
4
5pub struct IgnoredPlaceholder;
6
7impl IgnoredPlaceholder {
8    pub fn to_event(&self) -> Event<'static> {
9        Event::Html(ignored_placeholder().into())
10    }
11
12    pub fn to_cow_str(&self) -> CowStr<'static> {
13        ignored_placeholder().into()
14    }
15}
16
17fn ignored_placeholder() -> &'static str {
18    r#"<div class="mdplayscript-count ignored-holder">Ignored</div>"#
19}