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 7325802 commit 6f7dccf
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 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"
24 changes: 24 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Defaults https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
# DOCS https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md
#───────────────────────────────────────────────────────────────────────────────

# MODIFIED SETTINGS
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]

#─────────────────────────────────────────────────────────────────────────────
# DISABLED
ul-indent: false # not compatible with using tabs
no-hard-tabs: false # taken care of by editorconfig
blanks-around-lists: false # space waster
first-line-heading: false # e.g., ignore-comments
no-emphasis-as-heading: false # sometimes useful

0 comments on commit 6f7dccf

Please sign in to comment.