Skip to content

Commit 7c64cd5

Browse files
fix: use different exported-in detection logic
1 parent 9873d1b commit 7c64cd5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/markdown-helpers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,9 @@ export const findProcess = (tokens: Token[]): ProcessBlock => {
763763
const procs: ProcessBlock = {
764764
main: false,
765765
renderer: false,
766-
exported: tk.content.startsWith('Exported in'),
766+
exported: !ptks.some(
767+
ptk => ptk.type === 'text' && ptk.content.startsWith('This class is not exported'),
768+
),
767769
};
768770
for (const ptk of ptks) {
769771
if (ptk.type !== 'text') continue;

0 commit comments

Comments
 (0)