// Based on https://github.com/pulldown-cmark/pulldown-cmark/blob/master/pulldown-cmark/src/html.rs
use Event;
use DomNode;
use crate::;
use VertigoWriter;
/// Iterate over an iterator of pulldown's events, generate DomNode for each `Event`,
/// structure it into DOM tree and return the root node. Raw HTML and link destinations go
/// through the `policy`.