mirror of
https://github.com/lise-henry/crowbook
synced 2024-11-18 00:13:55 +01:00
fixed tests/html.rs
This commit is contained in:
parent
aeb28cf12e
commit
b537edfa62
@ -4,7 +4,7 @@ use self::crowbook::{Parser, HtmlRenderer, Book, Token};
|
||||
|
||||
fn ast_to_html(v: &[Token]) -> String {
|
||||
let mut book = Book::new();
|
||||
book.numbering = false;
|
||||
book.set_option("numbering", "false").unwrap();
|
||||
let mut html = HtmlRenderer::new(&book);
|
||||
html.render_vec(v)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user