hsml 0.7.2

A pug-inspired HTML preprocessor
Documentation
1
2
3
4
5
6
7
8
9
10
11
use nom::bytes::complete::tag;

use crate::parser::{HsmlResult, Span};

pub(super) fn process_doctype(input: Span<'_>) -> HsmlResult<'_, Span<'_>> {
    let (input, _) = tag("doctype ")(input)?;

    let (input, doctype) = tag("html")(input)?;

    Ok((input, doctype))
}