Skip to content

Commit

Permalink
Update deps; add table support
Browse files Browse the repository at this point in the history
  • Loading branch information
johncf committed Dec 16, 2016
1 parent 4945674 commit a7355e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/html/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use std::cell::RefCell;
use std::fmt::{self, Write};
use syntax::feature_gate::UnstableFeatures;

use cmark::{Parser, Event as CmEvent, Tag};
use cmark::{Event as CmEvent, Options, Parser, Tag};
use hamlet::Token as HmToken;
use cmark_hamlet;

Expand Down Expand Up @@ -109,7 +109,7 @@ pub fn render(w: &mut fmt::Formatter, md: &str, _: bool) -> fmt::Result {
let mut header = false;
let mut header_inner_buf = String::from("");
let mut header_id_buf = String::from("");
for hm_tok in cmark_hamlet::Adapter::new(Parser::new(md), true) {
for hm_tok in cmark_hamlet::Adapter::new(Parser::new_ext(md, Options::all()), true) {
match hm_tok {
HmToken::StartTag { ref name, .. } if is_header(name.as_ref()) => {
header = true;
Expand Down

0 comments on commit a7355e8

Please sign in to comment.