1.1.1 ā¢ Published 7 months ago
@quartzds/remark-preset v1.1.1
@quartzds/remark-preset
Shareable remark preset for Quartz design system packages.
šæ Installation
npm install --save-dev @quartzds/remark-preset
š Usage
Below are some common ways to get started.
CLI
Install remark-cli
:
npm install --save-dev remark-cli
Add the following configuration to package.json
:
/* ... */
"remarkConfig": {
"plugins": [
"@quartzds/remark-preset"
]
},
/* ... */
Then add an NPM script to package.json
:
/* ... */
"scripts": {
/* ... */
"check": "remark . --quiet --frail",
/* ... */
},
/* ... */
API
import { remark } from 'remark'
import remarkPresetQuartz from '@quartzds/remark-preset'
import { reporter } from 'vfile-reporter'
const file = await remark()
.use(remarkPresetQuartz)
.process('This and and that.')
console.error(reporter(file))
Yields:
1:6-1:13 warning Expected `and` once, not twice and retext-repeated-words
ā 1 warning
Refer to the remark examples documentation for more information.
āļø License
See the LICENSE file for license rights and limitations.
1.1.1
10 months ago
2.0.0-beta.2
7 months ago
2.0.0-beta.1
7 months ago
1.1.0
12 months ago
1.1.0-beta.1
12 months ago
1.0.2
12 months ago
1.0.1
12 months ago
1.0.0
12 months ago
1.0.0-beta.3
12 months ago
1.0.0-beta.2
12 months ago
1.0.0-beta.1
12 months ago