We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759b3b7 commit 853679bCopy full SHA for 853679b
src/domain/exampleExtractor.ts
@@ -64,6 +64,16 @@ export const extractExampleSections = (
64
}
65
66
});
67
+
68
+ // An in-progress example is also terminated by the end of the file
69
+ if (partialExample !== undefined) {
70
+ sections.push({
71
+ name: partialExample.name,
72
+ contents: partialExample.lines.join('\n'),
73
+ context,
74
+ });
75
+ }
76
77
// end-example
78
if (sections.length === 0) {
79
logger.debug(`No example sections in ${context.fullPath}`);
0 commit comments