Skip to content

Commit 98656b0

Browse files
committed
Default for the replaceFences option if unset
1 parent 5cff9bd commit 98656b0

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
@@ -16,7 +16,7 @@ export interface IOptions {
1616

1717
export default function directivePlugin(md: MarkdownIt, options: IOptions): void {
1818
let after = options.directivesAfter || "block"
19-
if (options.replaceFences) {
19+
if (options.replaceFences ?? true) {
2020
md.core.ruler.after(after, "fence_to_directive", replaceFences)
2121
after = "fence_to_directive"
2222
}

0 commit comments

Comments
 (0)