"lint-table-pipe-alignment" rule does not trigger #709
-
Hi all, since upgrading remark and the presets, the table pipe rules (such as remark-lint-table-pipe-alignment) do not work anymore, see: https://github.com/bids-standard/bids-specification/pull/791/files#r625066294 Please let me quickly outline my setup, so that perhaps an experienced user can already spot a mistake that I am doing. I'll be adding links to the PR that I am currently working on (and that's failing) I have this file of requirements to install: npm-requirements.txt
This is getting installed in GitHub Actions like so: name: Check Markdown style
on: [push, pull_request]
jobs:
markdown-style:
runs-on : ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install dependencies
run: npm install `cat npm-requirements.txt`
- name: Run style checks
# see: https://stackoverflow.com/a/39991116/5201771
# alternative (probably): npx remark ...
run: npm run env -- remark src/*.md src/*/*.md --frail --rc-path .remarkrc See that my command ( {
"plugins": [
"preset-lint-markdown-style-guide",
"preset-lint-recommended",
["lint-no-duplicate-headings", false],
["lint-list-item-indent", "tab-size"],
["lint-emphasis-marker", "consistent"],
["lint-maximum-line-length", false],
["lint-maximum-heading-length", false],
["lint-no-shortcut-reference-link", false],
["lint-no-trailing-spaces"],
["lint-no-undefined-references", false]
]
}
I hope this looks correct to you so far. (Because it does look good to me). However this setup does not detect misaligned table pipes, like this one: | **Column name** | **Requirement level** | **Description** |
| --------------- | --------------------- | ----------------------------------- |
| name | REQUIRED | Name of the electrode. |
| x | REQUIRED | Recorded position along the x-axis. |
| y | REQUIRED | Recorded position along the y-axis. | I don't know how to continue with debugging this. Can somebody please help me go in the right direction? Thanks! Stefan |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you’re missing https://github.com/remarkjs/remark-gfm |
Beta Was this translation helpful? Give feedback.
I think you’re missing https://github.com/remarkjs/remark-gfm