JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 174458
  • Score
    100M100P100Q188503F
  • License MIT

remark-lint rule to warn when importance (strong) markers violate the given style

Package Exports

  • remark-lint-strong-marker

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remark-lint-strong-marker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

remark-lint-strong-marker

Warn for violating strong markers.

Options: string, either 'consistent', '*', or '_', default: 'consistent'.

The default value, consistent, detects the first used strong style, and will warn when a subsequent strong uses a different style.

Install

npm install --save remark-lint-strong-marker

Example

When this rule is turned on, the following file valid.md is ok:

**foo** and **bar**.

When this rule is turned on, the following file also-valid.md is ok:

__foo__ and __bar__.

When this rule is turned on, the following file invalid.md is not ok:

**foo** and __bar__.
1:13-1:20: Strong should use `*` as a marker

When this rule is '*', the following file valid.md is ok:

**foo**.

When this rule is '_', the following file valid.md is ok:

__foo__.

When '!' is passed in, the following error is given:

1:1: Invalid strong marker `!`: use either `'consistent'`, `'*'`, or `'_'`

License

MIT © Titus Wormer