feat(parser): timestamp parsing

This commit is contained in:
PoiScript 2019-04-04 21:08:23 +08:00
parent 1f52e75d3d
commit 1bb5286dd3
12 changed files with 887 additions and 1023 deletions

View file

@ -32,7 +32,7 @@ impl From<FromUtf8Error> for Error {
type Result = std::result::Result<(), Error>;
impl<W: Write> HtmlHandler<W, Error> for CustomHtmlHandler {
fn handle_headline_beg(&mut self, w: &mut W, hdl: Headline) -> Result {
fn headline_beg(&mut self, w: &mut W, hdl: Headline) -> Result {
if hdl.level > 6 {
Err(Error::Heading)
} else {