Skip to content

Commit 0c9cba8

Browse files
committed
fix: pass fence by reference
1 parent e694981 commit 0c9cba8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: components/markdown/src/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::borrow::Cow;
22
use std::collections::HashMap;
3-
use std::path::{Path, PathBuf};
3+
use std::path::PathBuf;
44

55
use config::Config;
66
use libs::tera::{Context, Tera};

Diff for: components/markdown/src/markdown.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ pub fn markdown_to_html(
565565
cmark::CodeBlockKind::Fenced(fence_info) => FenceSettings::new(fence_info),
566566
_ => FenceSettings::new(""),
567567
};
568-
let (block, begin) = match CodeBlock::new(fence, context.config, path) {
568+
let (block, begin) = match CodeBlock::new(&fence, context.config, path) {
569569
Ok(cb) => cb,
570570
Err(e) => {
571571
error = Some(e);

0 commit comments

Comments
 (0)