Skip to content

Commit 24eb6f2

Browse files
committed
Default for the replaceFences option if unset
1 parent ad8207e commit 24eb6f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directives/plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { IOptions } from "./types"
55

66
export default function directivePlugin(md: MarkdownIt, options: IOptions): void {
77
let after = options.directivesAfter || "block"
8-
if (options.replaceFences) {
8+
if (options.replaceFences ?? true) {
99
md.core.ruler.after(after, "fence_to_directive", replaceFences)
1010
after = "fence_to_directive"
1111
}

0 commit comments

Comments
 (0)