Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 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
@@ -1,5 +1,5 @@
[dependencies]
comrak = { version = "0.58.0", features = ["shortcodes", "phoenix_heex"] }
comrak = { version = "0.59.0", features = ["shortcodes", "phoenix_heex"] }
pyo3 = { version = "0.30.1" }

[lib]
Expand Down
2 changes: 2 additions & 0 deletions comrak.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ class ExtensionOptions:
shortcodes: bool
wikilinks_title_after_pipe: bool
wikilinks_title_before_pipe: bool
wikilinks_ignore_embeds: bool
underline: bool
subscript: bool
spoiler: bool
Expand Down Expand Up @@ -490,6 +491,7 @@ class ExtensionOptions:
shortcodes: bool = False,
wikilinks_title_after_pipe: bool = False,
wikilinks_title_before_pipe: bool = False,
wikilinks_ignore_embed: bool = False,
underline: bool = False,
subscript: bool = False,
spoiler: bool = False,
Expand Down
5 changes: 5 additions & 0 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub struct PyExtensionOptions {
pub shortcodes: bool, // if your comrak_lib has the "shortcodes" feature
pub wikilinks_title_after_pipe: bool,
pub wikilinks_title_before_pipe: bool,
pub wikilinks_ignore_embeds: bool,
pub underline: bool,
pub subscript: bool,
pub spoiler: bool,
Expand Down Expand Up @@ -70,6 +71,7 @@ impl PyExtensionOptions {
opts.shortcodes = self.shortcodes;
opts.wikilinks_title_after_pipe = self.wikilinks_title_after_pipe;
opts.wikilinks_title_before_pipe = self.wikilinks_title_before_pipe;
opts.wikilinks_ignore_embeds = self.wikilinks_ignore_embeds;
opts.underline = self.underline;
opts.subscript = self.subscript;
opts.spoiler = self.spoiler;
Expand Down Expand Up @@ -112,6 +114,7 @@ impl PyExtensionOptions {
shortcodes=None, // if your comrak_lib has the "shortcodes" feature
wikilinks_title_after_pipe=None,
wikilinks_title_before_pipe=None,
wikilinks_ignore_embeds=None,
underline=None,
subscript=None,
spoiler=None,
Expand Down Expand Up @@ -149,6 +152,7 @@ impl PyExtensionOptions {
shortcodes: Option<bool>, // if your comrak_lib has the "shortcodes" feature
wikilinks_title_after_pipe: Option<bool>,
wikilinks_title_before_pipe: Option<bool>,
wikilinks_ignore_embeds: Option<bool>,
underline: Option<bool>,
subscript: Option<bool>,
spoiler: Option<bool>,
Expand Down Expand Up @@ -192,6 +196,7 @@ impl PyExtensionOptions {
.unwrap_or(defaults.wikilinks_title_after_pipe),
wikilinks_title_before_pipe: wikilinks_title_before_pipe
.unwrap_or(defaults.wikilinks_title_before_pipe),
wikilinks_ignore_embeds: wikilinks_ignore_embeds.unwrap_or(defaults.wikilinks_ignore_embeds),
underline: underline.unwrap_or(defaults.underline),
subscript: subscript.unwrap_or(defaults.subscript),
spoiler: spoiler.unwrap_or(defaults.spoiler),
Expand Down
Loading