From 3f05bcef2e272f2f8f1288145b8e32bb2860874e Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sun, 31 Jul 2022 20:32:03 +0100 Subject: [PATCH] Allow toc comment markers --- src/main.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 754b8d8..fb3e941 100644 --- a/src/main.rs +++ b/src/main.rs @@ -597,10 +597,13 @@ async fn main() -> Result<(), Error> { } } Event::Html(content) => { - return Err(format_err!( - "Contains HTML content, not markdown: {}", - content - )); + // Allow ToC markers, nothing else + if !content.contains("