Skip to content

Commit

Permalink
build(dependencies): 🧱 update crates
Browse files Browse the repository at this point in the history
Bumps pulldown-cmark from 0.10.3 to 0.12.2
  • Loading branch information
rodneylab committed Nov 27, 2024
1 parent a9a0d6c commit d57c67a
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 24 deletions.
14 changes: 10 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ html5ever = "0.29.0"
js-sys = "0.3.69"
mrml = { version = "4.0.1", features = ["parse", "render"], default-features = false }
nom = { version = "7.1.3", features = ["alloc"] }
pulldown-cmark = "0.10.3"
pulldown-cmark = "0.12.2"
pulldown-cmark-escape = "0.10.1"
serde = { version = "1.0.215", features = ["derive"] }
serde-wasm-bindgen = "0.6.5"
Expand Down
30 changes: 14 additions & 16 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/parsedown.generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// deno-fmt-ignore-file
/// <reference types="./parsedown.generated.d.ts" />

// source-hash: 386c448320ef24975d9d36b44f28bba83b3508d3
// source-hash: 3a4ca517f7ab233a122c46e6dabf7ce82b32fcf0
let wasm;

const heap = new Array(128).fill(undefined);
Expand Down
Binary file modified lib/parsedown_bg.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions src/markdown/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pub fn parse_markdown_to_html(
}
_ => {}
});
html::write_html(Cursor::new(&mut bytes), heading_parser)?;
html::write_html_io(Cursor::new(&mut bytes), heading_parser)?;
let reading_time = reading_time_from_words(word_count);
let statistics = TextStatistics {
reading_time,
Expand All @@ -156,7 +156,7 @@ pub fn parse_markdown_to_html(
_ => event,
});

match html::write_html(Cursor::new(&mut bytes), parser) {
match html::write_html_io(Cursor::new(&mut bytes), parser) {
Ok(()) => Ok((
String::from_utf8_lossy(&bytes).to_string(),
headings,
Expand Down

0 comments on commit d57c67a

Please sign in to comment.