Skip to content

Commit 8c7d6c7

Browse files
committed
inline markdown::Option import
1 parent ec31de2 commit 8c7d6c7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/template_helpers.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use handlebars::{
66
handlebars_helper, Context, Handlebars, HelperDef, JsonTruthy, PathAndJson, RenderError,
77
RenderErrorReason, Renderable, ScopedJson,
88
};
9-
use markdown::Options;
109
use serde_json::Value as JsonValue;
1110

1211
/// Simple static json helper
@@ -293,7 +292,7 @@ impl MarkdownHelper {
293292
}
294293
}
295294

296-
fn calculate_options(&self, args: &[PathAndJson]) -> Options {
295+
fn calculate_options(&self, args: &[PathAndJson]) -> markdown::Options {
297296
let mut options = self.system_options();
298297

299298
if !options.compile.allow_dangerous_html && args.len() > 1 {
@@ -306,8 +305,8 @@ impl MarkdownHelper {
306305
options
307306
}
308307

309-
fn system_options(&self) -> Options {
310-
let mut options = Options::gfm();
308+
fn system_options(&self) -> markdown::Options {
309+
let mut options = markdown::Options::gfm();
311310
options.compile.allow_dangerous_html = self.allow_dangerous_html;
312311
options.compile.allow_dangerous_protocol = self.allow_dangerous_protocol;
313312
options.compile.allow_any_img_src = true;

0 commit comments

Comments
 (0)