Skip to content

Commit

Permalink
Bump comrak to 0.33
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jan 4, 2025
1 parent e7d25bc commit c02f45e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
4 changes: 2 additions & 2 deletions apps/readme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ tokio = { workspace = true, features = ["rt", "rt-multi-thread"] }
reqwest = { workspace = true }
url = { workspace = true }
winit = { workspace = true }
comrak = { version = "0.32", default-features = false }
notify = "7.0.0"
comrak = { version = "0.33", default-features = false }
notify = "7.0.0"
38 changes: 20 additions & 18 deletions apps/readme/src/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,26 @@ pub(crate) fn markdown_to_html(contents: String) -> String {
let body_html = markdown_to_html_with_plugins(
&contents,
&Options {
extension: ExtensionOptions::builder()
.strikethrough(true)
.tagfilter(false)
.table(true)
.autolink(true)
.tasklist(true)
.superscript(false)
.maybe_header_ids(None)
.footnotes(false)
.description_lists(false)
.maybe_front_matter_delimiter(None)
.multiline_block_quotes(false)
.build(),
render: RenderOptions::builder()
.unsafe_(true)
.tasklist_classes(true)
.build(),
..Default::default()
extension: ExtensionOptions {
strikethrough: true,
tagfilter: false,
table: true,
autolink: true,
tasklist: true,
superscript: false,
header_ids: None,
footnotes: false,
description_lists: false,
front_matter_delimiter: None,
multiline_block_quotes: false,
..ExtensionOptions::default()
},
render: RenderOptions {
unsafe_: true,
tasklist_classes: true,
..RenderOptions::default()
},
..Options::default()
},
&plugins,
);
Expand Down

0 comments on commit c02f45e

Please sign in to comment.