@bendyline/gezel 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checks/index.d.ts +1 -1
- package/dist/checks/index.js +2 -2
- package/dist/{index-4Q1N_3oe.d.ts → index-Cj_G8Y-S.d.ts} +169 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +968 -13
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/index.js +7 -3
- package/dist/{report-action-C0KuyeNw.d.ts → report-action-UJ-pJpZO.d.ts} +5 -0
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +46 -12
- package/package.json +1 -1
package/dist/checks/index.d.ts
CHANGED
|
@@ -585,7 +585,7 @@ interface MarkdownHeadingsMatchResult extends CheckResult {
|
|
|
585
585
|
* Compare a Markdown deck's H1 boundaries with a locked outline whose slides
|
|
586
586
|
* are authored as `## Slide N — Title` (also accepts `## N. Title`).
|
|
587
587
|
*/
|
|
588
|
-
declare function markdownHeadingsMatch(ws: WorkspaceLike, file: string, outlineFile: string): Promise<MarkdownHeadingsMatchResult>;
|
|
588
|
+
declare function markdownHeadingsMatch(ws: WorkspaceLike, file: string, outlineFile: string, outlineWs?: WorkspaceLike): Promise<MarkdownHeadingsMatchResult>;
|
|
589
589
|
|
|
590
590
|
/**
|
|
591
591
|
* Human-line explainers for the step sniffs. A gate verdict that says
|
package/dist/checks/index.js
CHANGED
|
@@ -1462,8 +1462,8 @@ function outlineSlideHeadings(markdown) {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
return headings;
|
|
1464
1464
|
}
|
|
1465
|
-
async function markdownHeadingsMatch(ws, file, outlineFile) {
|
|
1466
|
-
const [document, outline] = await Promise.all([ws.read(file),
|
|
1465
|
+
async function markdownHeadingsMatch(ws, file, outlineFile, outlineWs = ws) {
|
|
1466
|
+
const [document, outline] = await Promise.all([ws.read(file), outlineWs.read(outlineFile)]);
|
|
1467
1467
|
if (document === null) {
|
|
1468
1468
|
return {
|
|
1469
1469
|
ok: false,
|