dom_query 0.29.0

HTML querying and manipulation with CSS selectors
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub(super) const LIST_OFFSET_BASE: usize = 4;
/// `CommonMark` ordered-list markers have at most nine digits; a longer number
/// turns the marker into plain paragraph text.
pub(super) const MAX_LIST_NUMBER: u32 = 999_999_999;
/// Characters with Markdown meaning anywhere in a line, escaped unconditionally.
pub(super) const ALWAYS_ESCAPED: &[u8] = b"\\`*_[]<|~";
/// Characters that can only start a Markdown block at the beginning of a line
pub(super) const LINE_START_ESCAPED: &[u8] = b"#>-+";

pub(super) const DEFAULT_SKIP_TAGS: [&str; 4] = ["script", "style", "meta", "head"];
pub(super) const CODE_LANGUAGE_ATTRIBUTES: [&str; 2] = ["data-lang", "data-language"];
pub(super) const CODE_LANGUAGE_PREFIX: &str = "language-";