🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

@rstacruz/prettier-plugin-markdown-code-fences

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rstacruz/prettier-plugin-markdown-code-fences

Converts indented code blocks into fenced code blocks

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source



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.

BeforeAfter
## 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

 

Keywords

markdown

FAQs

Package last updated on 03 Jul 2020

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