From cb6c64d5ab0d8363dd1e6619847aa74395834095 Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 15 Jul 2026 18:36:53 +0300 Subject: [PATCH] fix: inline html --- .pre-commit-config.yaml | 2 +- Cargo.toml | 2 +- src/markdown.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 97f011a..c9ee761 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: - id: clippy name: clippy language: system - entry: cargo clippy -- -D clippy::all -D clippy::pedantic + entry: cargo clippy -- -D clippy::all -D clippy::pedantic -W clippy::struct-excessive-bools pass_filenames: false always_run: true diff --git a/Cargo.toml b/Cargo.toml index 96fe86b..3f0a1a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ strip = true reqwest = { version = "0.11", features = ["blocking"] } [dependencies] -pulldown-cmark = "0.13.4" +pulldown-cmark = { version = "0.13.4", features = ["simd"] } axum = "0.7" tokio = { version = "1", features = ["full"] } serde = { version = "1", features = ["derive"] } diff --git a/src/markdown.rs b/src/markdown.rs index c1a8e62..6926e4e 100644 --- a/src/markdown.rs +++ b/src/markdown.rs @@ -344,7 +344,7 @@ pub fn markdown_to_html(markdown: &str, _file_path: &str) -> String { Event::SoftBreak => html_output.push(' '), Event::HardBreak => html_output.push_str("
"), - Event::Html(html) => html_output.push_str(&html), + Event::Html(html) | Event::InlineHtml(html) => html_output.push_str(&html), Event::Rule => html_output.push_str("
"), @@ -355,7 +355,7 @@ pub fn markdown_to_html(markdown: &str, _file_path: &str) -> String { ); } - Event::InlineHtml(_) | Event::InlineMath(_) | Event::DisplayMath(_) => (), + Event::InlineMath(_) | Event::DisplayMath(_) => (), } }