fix: inline html

This commit is contained in:
thek4n 2026-07-15 18:36:53 +03:00
parent c9dee232ce
commit cb6c64d5ab
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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"] }

View File

@ -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("<br>"),
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("<hr>"),
@ -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(_) => (),
}
}