@putout/plugin-markdown
🐊Putout plugin adds ability to improve markdown
Last updated 2 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-markdown 
SYNC missed versions from official npm registry.

@putout/plugin-markdown NPM version

Markdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents.

(c) markdownguide.org

🐊Putout plugin adds ability to improve markdown.

Install

npm i @putout/plugin-markdown -D

Rules

Filesystem

Config

{
    "rules": {
        "markdown/apply-ts-codeblock-in-file": "on",
        "markdown/merge-heading-spaces": "on",
        "markdown/remove-dependencies-status-badge": "on",
        "markdown/remove-trailing-whitespaces-from-heading": "on",
        "markdown/split-link-with-title": "on"
    }
}

merge-heading-spaces

Checkout in 🐊Putout Editor.

❌ Example of incorrect code

# hello  world

βœ… Example of correct code

# hello world

split-link-with-title

Add space between title and link. Checkout in 🐊Putout Editor.

# @putout/plugin-apply-replace-all [![NPM version][NPMIMGURL]][NPMURL]
[NPMIMGURL]:                https://img.shields.io/npm/v/@putout/plugin-apply-replace-all.svg?style=flat&longCache=true
-[NPMURL]:                   https://npmjs.org/package/@putout/plugin-apply-replace-all"npm"
+[NPMURL]:                   https://npmjs.org/package/@putout/plugin-apply-replace-all "npm"
-[hello](https://google.com"Google")
+[hello](https://google.com "Google")

remove-dependencies-status-badge

Checkout in 🐊Putout Editor.

-# @putout/plugin-apply-replace-all [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL]
+# @putout/plugin-apply-replace-all [![NPM version][NPMIMGURL]][NPMURL]
[NPMIMGURL]:                https://img.shields.io/npm/v/@putout/plugin-apply-replace-all.svg?style=flat&longCache=true
[NPMURL]:                   https://npmjs.org/package/@putout/plugin-apply-replace-all "npm"
-
-[DependencyStatusURL]:      https://david-dm.org/coderaiser/putout?path=packages/plugin-apply-replace-all
-[DependencyStatusIMGURL]:   https://david-dm.org/coderaiser/putout.svg?path=packages/plugin-apply-replace-all

remove-trailing-whitespaces-from-heading

Checkout in 🐊Putout Editor.

-# @putout/plugin-apply-replace-all [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] hello␣
+# @putout/plugin-apply-replace-all [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] hello

apply-ts-codeblock-in-file

Checkout in 🐊Putout Editor.

❌ Example of incorrect code

\`\`\`js
const result: string[] = [];
\`\`\`

βœ… Example of correct code

\`\`\`ts
const result: string[] = [];
\`\`\`

License

MIT

Current Tags

  • 1.5.1                                ...           latest (2 months ago)

11 Versions

  • 1.5.1                                ...           2 months ago
  • 1.5.0                                ...           2 months ago
  • 1.4.2                                ...           5 months ago
  • 1.4.1                                ...           5 months ago
  • 1.4.0                                ...           5 months ago
  • 1.3.0                                ...           5 months ago
  • 1.2.0                                ...           5 months ago
  • 1.1.0                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Total 28
Today 3
This Week 5
This Month 28
Last Day 1
Last Week 3
Last Month 0
Dependencies (1)
Dev Dependencies (7)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE