Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remark-preset-davidtheclark

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-preset-davidtheclark

My remark preset, for keeping Markdown documentation tidy

  • 0.7.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
295
increased by21.4%
Maintainers
1
Weekly downloads
 
Created
Source

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

As a remark plugin

Usage with remark-cli.

Here's the way I like to use it, which does the following:

  • Checks Markdown files in the project root and docs/ directory.
  • Automatically formats files, overwriting them (--output).
  • Breaks tests if linting errors are found (--frail).
  • Only outputs warnings and errors (--quiet and --no-stdout).
remark . --use remark-preset-davidtheclark --frail --quiet --no-stdout --output

As a standalone tool

This package provides an executable that runs the above command for you. So you could create a little npm script like this:

"lint-md": "remark-preset-davidtheclark"

Keywords

FAQs

Package last updated on 05 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc