Skip to content

Commit

Permalink
fix: use deflist plugin in img-plugin's collect
Browse files Browse the repository at this point in the history
  • Loading branch information
brotheroftux committed Feb 17, 2025
1 parent 758cd3a commit ca11a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transform/plugins/images/collect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {relative} from 'path';

import {isLocalUrl} from '../../utils';
import {resolveRelativePath} from '../../utilsFS';
import deflist from '../deflist';
import imsize from '../imsize';
import {MarkdownItPluginOpts} from '../typings';

Expand All @@ -13,7 +14,7 @@ type Options = MarkdownItPluginOpts & {
};

const collect = (input: string, options: Options) => {
const md = new MarkdownIt().use(imsize);
const md = new MarkdownIt().use(imsize).use(deflist);

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

0 comments on commit ca11a7a

Please sign in to comment.