Registry /
testing / remark-lint-no-hidden-table-cell
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
remarkLintNoHiddenTableCell
✓ import remarkLintNoHiddenTableCell from 'remark-lint-no-hidden-table-cell'
✗ const { remarkLintNoHiddenTableCell } = require('remark-lint-no-hidden-table-cell')
ESM-only since v1.0.0; no named export, default export only.
remarkLint
✓ import remarkLint from 'remark-lint'
✗ import { remarkLint } from 'remark-lint'
remark-lint also has a default export; named export does not exist.
remarkParse
✓ import remarkParse from 'remark-parse'
✗ const remarkParse = require('remark-parse')
ESM-only. Used for parsing markdown.
Sets up a unified pipeline to lint a markdown file for hidden table cells, using GFM support.
import remarkLint from 'remark-lint'
import remarkLintNoHiddenTableCell from 'remark-lint-no-hidden-table-cell'
import remarkParse from 'remark-parse'
import remarkStringify from 'remark-stringify'
import remarkGfm from 'remark-gfm'
import { read } from 'to-vfile'
import { unified } from 'unified'
import { reporter } from 'vfile-reporter'
const file = await read('example.md')
await unified()
.use(remarkParse)
.use(remarkGfm)
.use(remarkLint)
.use(remarkLintNoHiddenTableCell)
.use(remarkStringify)
.process(file)
console.error(reporter(file))
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module ... not supported
Using CommonJS require() to import an ESM-only module.
fixSwitch to import statement or use dynamic import().
Could not parse table: unrecognized table row structure
Missing remark-gfm plugin to parse GFM tables.
fixInstall remark-gfm and add .use(remarkGfm) to the pipeline.
Cannot find module 'remark-lint'
remark-lint is not installed in the project.
fixRun npm install remark-lint.
Audit
Dependencies
unifiedrequiredunified ecosystem core; required to use remark plugins
remark-lintrequiredrequired to run lint rules; provides the lint infrastructure
remark-gfmoptionalrequired for GFM table support; needed to parse tables correctly