@quartzds/remark-preset
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@quartzds/remark-preset

NPM Package License

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @quartzds/remark-preset

Weekly Downloads

6

Version

1.1.1

License

LGPL-2.1-only

Unpacked Size

8.57 kB

Total Files

6

Last publish

Collaborators

  • quartzds-bot
  • quartzfm