Skip to content

Commit

Permalink
ci: add markdownlint check
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 25, 2024
1 parent 06ef972 commit f9ddce9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Markdownlint check

on:
push:
branches: [main]
paths: ["**.md"]
pull_request:

jobs:
markdownlint:
name: Markdownlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v18
with:
globs: "**/*.md"
11 changes: 8 additions & 3 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
#───────────────────────────────────────────────────────────────────────────────

# MODIFIED SETTINGS
blanks-around-headings: { lines_below: 0 } # rule of proximity
blanks-around-headings:
lines_below: 0 # space waster
ul-style: { style: sublist }

# not autofixable
ol-prefix: { style: ordered }
line-length: { tables: false, code_blocks: false }
no-inline-html: { allowed_elements: [img, details, summary, kbd, a, br] }
line-length:
tables: false
code_blocks: false
no-inline-html:
allowed_elements: [img, details, summary, kbd, a, br]

#─────────────────────────────────────────────────────────────────────────────
# DISABLED
Expand Down

0 comments on commit f9ddce9

Please sign in to comment.