fix: inline html
This commit is contained in:
parent
c9dee232ce
commit
cb6c64d5ab
@ -27,7 +27,7 @@ repos:
|
|||||||
- id: clippy
|
- id: clippy
|
||||||
name: clippy
|
name: clippy
|
||||||
language: system
|
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
|
pass_filenames: false
|
||||||
always_run: true
|
always_run: true
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ strip = true
|
|||||||
reqwest = { version = "0.11", features = ["blocking"] }
|
reqwest = { version = "0.11", features = ["blocking"] }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
pulldown-cmark = "0.13.4"
|
pulldown-cmark = { version = "0.13.4", features = ["simd"] }
|
||||||
axum = "0.7"
|
axum = "0.7"
|
||||||
tokio = { version = "1", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
|
|||||||
@ -344,7 +344,7 @@ pub fn markdown_to_html(markdown: &str, _file_path: &str) -> String {
|
|||||||
Event::SoftBreak => html_output.push(' '),
|
Event::SoftBreak => html_output.push(' '),
|
||||||
Event::HardBreak => html_output.push_str("<br>"),
|
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>"),
|
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(_) => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user