1. remark-preset-davidtheclark
My remark preset, for keeping Markdown documentation tidy
remark-preset-davidtheclark
Package: remark-preset-davidtheclark
Created by: davidtheclark
Last modified: Sun, 15 May 2022 18:10:38 GMT
Version: 0.12.0
License: MIT
Downloads: 2,095
Repository: https://github.com/davidtheclark/remark-preset-davidtheclark

Install

npm install remark-preset-davidtheclark
yarn add remark-preset-davidtheclark

remark-preset-davidtheclark

My remark preset, for keeping Markdown documentation tidy.

Uses remark-lint plugins and a few other remark plugins.

Validation:

  • Links within the repository (to headings, other files, headings in other files) are validated.
  • A table of contents will be generated if you include a Table of contents header in a document.

Syntax — most of which is automatically fixed:

  • Unordered list items marked with -.
  • List items indented only one space beyond the marker.
  • Emphasis and strong are both indicated with *.
  • Code blocks are fenced with triple backticks.
  • atx-style headings, the ones that (just) start with # signs, e.g. ## Second-level heading.
  • Other stuff that should be intuitive or prevent mistakes.

Usage

You can use this package as a remark plugin, in Node code or with remark-cli.

It also provides a CLI that runs remark-cli for you, which is how I normally use it.

Lint or format Markdown files.

Usage
  remark-preset-davidtheclark [options] [path|glob...]

  By default, runs on all Markdown files in cwd.

Options
  -f, --format    Format files instead of linting them.

Examples
  remark-preset-davidtheclark
  remark-preset-davidtheclark docs/*.md
  remark-preset-davidtheclark --format "docs/**/*.md"

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin