We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f329d2 commit d109a89Copy full SHA for d109a89
src/autoProcess.ts
@@ -83,7 +83,7 @@ export function autoPreprocess(
83
const optionsCache: Record<string, any> = {};
84
const transformers = rest.transformers || (rest as Transformers);
85
const markupPattern = new RegExp(
86
- `<${markupTagName}([\\s\\S]*?)>([\\s\\S]*)<\\/${markupTagName}>`,
+ `<${markupTagName}([\\s\\S]*?)(?:>([\\s\\S]*)<\\/${markupTagName}>|/>)`,
87
);
88
89
if (aliases && aliases.length) {
0 commit comments