1. remark-preset-wooorm
Personal markdown and prose style
remark-preset-wooorm
Package: remark-preset-wooorm
Created by: wooorm
Last modified: Tue, 09 Apr 2024 18:38:49 GMT
Version: 10.0.0
License: MIT
Downloads: 4,508
Repository: https://github.com/wooorm/remark-preset-wooorm

Install

npm install remark-preset-wooorm
yarn add remark-preset-wooorm

remark-preset-wooorm

Build
Downloads
Size

My personal markdown (and prose) style.

Contents

What is this?

This is a preset for remark to check markdown.
It’s used on all the readmes I work on.

When should I use this?

Feel free to use this.
But you can also create your own personal style preset.

Install

This package is ESM only.
In Node.js (version 16+),
install with npm:

 npm install remark-preset-wooorm

In Deno with esm.sh:

 import remarkPresetWooorm from 'https://esm.sh/remark-preset-wooorm@10'

In browsers with esm.sh:

 <script type="module">
  import remarkPresetWooorm from 'https://esm.sh/remark-preset-wooorm@10?bundle'
</script>

Use

 import {remark} from 'remark'
import remarkPresetWooorm from 'remark-preset-wooorm'
import {reporter} from 'vfile-reporter'

const file = await remark()
  .use(remarkPresetWooorm)
  .process('This *and* _and_ that.')

console.error(reporter(file))

Yields:

 1:7-1:16  warning Unexpected repeated `and`, remove one occurrence                                     and             retext-repeated-words
1:12-1:17 warning Unexpected emphasis marker `_`, expected `*`                                         emphasis-marker remark-lint
1:23      warning Unexpected missing final newline character, expected line feed (`\n`) at end of file final-newline   remark-lint

⚠ 3 warnings

API

This package exports no identifiers.
The default export is remarkPresetWooorm.
It exports no TypeScript types.

remarkPresetWooorm

Preset to support my personal markdown style (Preset).

Checks

Markdown
  • extends
    remark-preset-lint-recommended,
    and adds a strict code-style (see index.js)
  • checks broken local links
  • markdown is compiled with asterisks (*) for list-item bullets and
    emphasis, and fenced code blocks (note: set output: true in your config to
    benefit from this)
  • how remark compiles can be configured inline with
    comments
  • Contents headers are kept up to date, with a depth of 3 (if
    output: true)
  • GH references,
    like mentions or issue references, are linked (if output: true)
Natural language

See retext-preset-wooorm for more info.

Compatibility

This projects is compatible with maintained versions of Node.js.

When we cut a new major release,
we drop support for unmaintained versions of Node.
This means we try to keep the current release line,
remark-preset-wooorm@10,
compatible with Node.js 16.

Contribute

Yes please!
See How to Contribute to Open Source.

License

MIT © Titus Wormer

Dependencies

remark-comment-config: ^8.0.0remark-gfm: ^4.0.0remark-github: ^12.0.0remark-lint-blockquote-indentation: ^4.0.0remark-lint-checkbox-character-style: ^5.0.0remark-lint-checkbox-content-indent: ^5.0.0remark-lint-code-block-style: ^4.0.0remark-lint-definition-case: ^4.0.0remark-lint-definition-spacing: ^4.0.0remark-lint-emphasis-marker: ^4.0.0remark-lint-fenced-code-flag: ^4.0.0remark-lint-fenced-code-marker: ^4.0.0remark-lint-file-extension: ^3.0.0remark-lint-final-definition: ^4.0.0remark-lint-first-heading-level: ^4.0.0remark-lint-heading-style: ^4.0.0remark-lint-link-title-style: ^4.0.0remark-lint-maximum-heading-length: ^4.0.0remark-lint-maximum-line-length: ^4.0.0remark-lint-no-consecutive-blank-lines: ^5.0.0remark-lint-no-duplicate-defined-urls: ^3.0.0remark-lint-no-duplicate-definitions: ^4.0.0remark-lint-no-duplicate-headings-in-section: ^4.0.0remark-lint-no-emphasis-as-heading: ^4.0.0remark-lint-no-empty-url: ^4.0.0remark-lint-no-file-name-articles: ^3.0.0remark-lint-no-file-name-consecutive-dashes: ^3.0.0remark-lint-no-file-name-irregular-characters: ^3.0.0remark-lint-no-file-name-mixed-case: ^3.0.0remark-lint-no-file-name-outer-dashes: ^3.0.0remark-lint-no-heading-content-indent: ^5.0.0remark-lint-no-heading-indent: ^5.0.0remark-lint-no-heading-like-paragraph: ^4.0.0remark-lint-no-heading-punctuation: ^4.0.0remark-lint-no-html: ^4.0.0remark-lint-no-missing-blank-lines: ^4.0.0remark-lint-no-multiple-toplevel-headings: ^4.0.0remark-lint-no-paragraph-content-indent: ^5.0.0remark-lint-no-reference-like-url: ^4.0.0remark-lint-no-shell-dollars: ^4.0.0remark-lint-no-table-indentation: ^5.0.0remark-lint-no-tabs: ^4.0.0remark-lint-no-unneeded-full-reference-image: ^4.0.0remark-lint-no-unneeded-full-reference-link: ^4.0.0remark-lint-ordered-list-marker-value: ^4.0.0remark-lint-rule-style: ^4.0.0remark-lint-strong-marker: ^4.0.0remark-lint-table-cell-padding: ^5.0.0remark-lint-table-pipe-alignment: ^4.0.0remark-lint-table-pipes: ^5.0.0remark-lint-unordered-list-marker-style: ^4.0.0remark-preset-lint-recommended: ^7.0.0remark-retext: ^6.0.0remark-stringify: ^11.0.0remark-toc: ^9.0.0remark-validate-links: ^13.0.0retext-english: ^5.0.0retext-preset-wooorm: ^5.0.0unified: ^11.0.0

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code