@rstacruz/prettier-plugin-markdown-code-fences
Converts indented code blocks into fenced code blocks
Last updated 4 months ago by rstacruz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @rstacruz/prettier-plugin-markdown-code-fences 
SYNC missed versions from official npm registry.



Prettier plugin: Markdown code fences

Plugin for Prettier to format Markdown files with code fences


NB: This micro-package is offered as-is and is only supported on a best effort basis.

Description

Converts indented code blocks into fenced code blocks.

Before After
## This is a Markdown file

Here are some terminal commands.

    cd /
    find . -name systemd
    uname -a
## This is a Markdown file

Here are some terminal commands.

```
cd /
find . -name systemd
uname -a
```

Usage

Install the plugin into an npm project and it will work automatically.

yarn add --dev @rstacruz/prettier-plugin-markdown-code-fences prettier
yarn run prettier --write file.md

Thanks

prettier-plugin-markdown-code-fences © 2020, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).

ricostacruz.com  ·  GitHub @rstacruz  ·  Twitter @rstacruz

 

Current Tags

  • 1.0.0                                ...           latest (4 months ago)

1 Versions

  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |