Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/node.js-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@ jobs:
run: npm ci --ignore-scripts
- name: Check the checked-in Markdown
run: npm test
- name: Verify the documented Markdown fix command
shell: bash
run: |
npm run lint:markdown-fix
git diff --exit-code -- '*.md' 'content/**/*.md'
- name: Check patched Markdown parser consumers
shell: bash
run: |
markdown_fixture="$(mktemp -d)"
trap 'rm -rf "$markdown_fixture"' EXIT
printf '%s\n' '---' 'contract: synthetic' '---' \
'# Synthetic parser contract' '' 'Inline math $x^2$.' \
> "$markdown_fixture/parser.md"
npx --offline --no-install markdownlint-cli2 "$markdown_fixture/parser.md"
- name: Audit locked tooling for high-severity advisories
run: npm audit --audit-level=high --ignore-scripts
- name: Build the production repository
run: npm run build
- name: Exercise the production Docsy stylesheet
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ To apply the linter's supported fixes:
npm run lint:markdown-fix
```

The linter uses narrowly scoped RE2JS and KaTeX security patch overrides below
`markdownlint` 0.42.0 until its publisher updates those dependency pins.

## CI

CI installs the locked dependencies, checks Markdown, and builds the actual
Expand Down
Loading
Loading