remark-lint rule to warn when GFM table cells are padded inconsistently. Version 5.1.1, part of the remark-lint ecosystem, maintained by the remark organization. It checks whether cells have compact (no spaces around content) or padded (at least one space) style. Supports 'consistent' mode to detect first style, and custom stringLength function for wide characters. ESM-only, requires Node 16+, and needs remark-gfm for GFM table parsing.
npm install remark-lint-table-cell-paddingNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up the lint rule with unified, enabling GFM tables and using 'padded' style.
Use import syntax or switch to dynamic import(). Ensure Node.js >=16.
Add remark-gfm to your unified pipeline: .use(remarkGfm).
Pass a function like stringLength: s => [...s].length or use string-width package.
Use { style: 'padded' } instead of just 'padded'.Explicitly set style to 'padded' or 'compact' when known.
Change to import statement and ensure project is ESM or use dynamic import().
Install remark-gfm: npm install remark-gfm and add .use(remarkGfm) to pipeline.
Add spaces: | a | instead of |a|.
No dependency data recorded yet.