Skip to content

Commit 2bf0a2f

Browse files
committed
get_preset_options
1 parent 3957c59 commit 2bf0a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/template_helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ impl MarkdownHelper {
281281
}
282282
}
283283

284-
fn system_options(&self, preset_name: &str) -> Result<markdown::Options, String> {
284+
fn get_preset_options(&self, preset_name: &str) -> Result<markdown::Options, String> {
285285
let mut options = markdown::Options::gfm();
286286
options.compile.allow_dangerous_html = self.allow_dangerous_html;
287287
options.compile.allow_dangerous_protocol = self.allow_dangerous_protocol;
@@ -325,7 +325,7 @@ impl CanHelp for MarkdownHelper {
325325
other => Cow::Owned(other.to_string()),
326326
};
327327

328-
let options = self.system_options(preset_name)?;
328+
let options = self.get_preset_options(preset_name)?;
329329
markdown::to_html_with_options(&markdown_src, &options)
330330
.map(JsonValue::String)
331331
.map_err(|e| e.to_string())

0 commit comments

Comments
 (0)