Skip to content

Commit 40c8b86

Browse files
committed
fix: use deflist plugin in img-plugin's collect
1 parent 758cd3a commit 40c8b86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/transform/plugins/images/collect.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {relative} from 'path';
33

44
import {isLocalUrl} from '../../utils';
55
import {resolveRelativePath} from '../../utilsFS';
6+
import deflist from '../deflist';
67
import imsize from '../imsize';
78
import {MarkdownItPluginOpts} from '../typings';
89

@@ -13,7 +14,7 @@ type Options = MarkdownItPluginOpts & {
1314
};
1415

1516
const collect = (input: string, options: Options) => {
16-
const md = new MarkdownIt().use(imsize);
17+
const md = new MarkdownIt().use(imsize).use(deflist);
1718

1819
const {root, path, destPath = '', copyFile, singlePage} = options;
1920
const tokens = md.parse(input, {});

0 commit comments

Comments
 (0)