Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
remark-lint-no-table-indentation
Advanced tools
Warn when tables are indented.
remark-stringify
removes all unneeded indentation before tables.
See Using remark to fix your Markdown on how to automatically fix warnings for this rule.
This rule is included in the following presets:
Preset | Setting |
---|---|
remark-preset-lint-markdown-style-guide |
ok.md
Note: this example uses GFM.
Paragraph.
| A | B |
| ----- | ----- |
| Alpha | Bravo |
No messages.
not-ok.md
Note: this example uses GFM.
Note: ·
represents a space.
Paragraph.
···| A | B |
···| ----- | ----- |
···| Alpha | Bravo |
3:4: Do not indent table rows
4:4: Do not indent table rows
5:4: Do not indent table rows
not-ok-blockquote.md
Note: this example uses GFM.
Note: ·
represents a space.
>··| A |
>·| - |
1:4: Do not indent table rows
not-ok-list.md
Note: this example uses GFM.
Note: ·
represents a space.
-···paragraph
·····| A |
····| - |
3:6: Do not indent table rows
This package is ESM only:
Node 12+ is needed to use it and it must be imported
ed instead of required
d.
npm:
npm install remark-lint-no-table-indentation
This package exports no identifiers.
The default export is remarkLintNoTableIndentation
.
You probably want to use it on the CLI through a config file:
…
"remarkConfig": {
"plugins": [
…
"lint",
+ "lint-no-table-indentation",
…
]
}
…
Or use it on the CLI directly
remark -u lint -u lint-no-table-indentation readme.md
Or use this on the API:
import {remark} from 'remark'
import {reporter} from 'vfile-reporter'
import remarkLint from 'remark-lint'
import remarkLintNoTableIndentation from 'remark-lint-no-table-indentation'
remark()
.use(remarkLint)
+ .use(remarkLintNoTableIndentation)
.process('_Emphasis_ and **importance**')
.then((file) => {
console.error(reporter(file))
})
See contributing.md
in remarkjs/.github
for ways
to get started.
See support.md
for ways to get help.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.
FAQs
remark-lint rule to warn when tables are indented
The npm package remark-lint-no-table-indentation receives a total of 70,992 weekly downloads. As such, remark-lint-no-table-indentation popularity was classified as popular.
We found that remark-lint-no-table-indentation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.