1.6.0 • Published 10 months ago
@tiagoporto/remark-config v1.6.0
@tiagoporto/remark-config
Shareable Config for remark.
Installation
npm install --save-dev remark remark-cli @tiagoporto/remark-configUsage
// .remarkrc
{
"plugins": ["@tiagoporto/remark-config"]
}MDX
// .remarkrc
{
"plugins": ["@tiagoporto/remark-config/mdx"]
}Note: Running this settings against md files can return unexpected results. Example: https://github.com/mdx-js/mdx/issues/2576.
The workaround is to create a new .remarkrc file under mdx folder.
.
├── packages
│ ├── .remarkrc (MDX Config)
│ ├── TODO.mdx
│ └── README.mdx
│
├── .remarkrc
└── README.mdIn package.json add the following scripts:
{
"scripts": {
"check-docs": "remark --frail . --ext md,markdown,mdx"
}
}Lint-staged
Check staged markdown
// .lintstagedrc.mjs
export default {
'*.{md,markdown,mdx}': 'remark --frail',
}Editor
For VSCode is recommended the following extensions:
1.6.0
10 months ago
1.5.0
10 months ago
1.2.0
11 months ago
1.1.0-alpha.1
11 months ago
1.1.0
11 months ago
1.4.0
11 months ago
1.3.0
11 months ago
1.0.0
12 months ago
1.0.0-alpha.1
1 year ago
1.0.0-alpha.0
1 year ago