updates to ignore bare URLs and line lengths up to 600 characters #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Markdown Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install markdownlint-cli | |
run: npm install -g markdownlint-cli | |
- name: Create markdownlint configuration | |
run: | | |
echo '{ | |
"MD013": { | |
"line_length": 600, // Sets a high line length limit (600 characters) | |
"ignore_urls": true, // Ignores long lines that contain URLs | |
"ignore_code_blocks": true, // Ignores long lines within code blocks | |
"ignore_tables": true // Ignores long lines within tables | |
}, | |
"MD034": false // Disables the rule that flags bare URLs | |
}' > .markdownlint.json | |
- name: Run markdownlint | |
run: markdownlint '**/*.md' |