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

@olets/markdown-it-wrapperless-fence-rule

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@olets/markdown-it-wrapperless-fence-rule

markdown-it plugin for a fence rule with no wrapper

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@olets/markdown-it-wrapperless-fence-rule GitHub release (latest by date) GitHub commits since latest release

markdown-it plugin for a fence rule with no wrapper.

By default, markdown-it will always wrap rendered fenced code in <pre><code>. That's a good default: it turns

```js
…
```

into

<pre>
  <code></code>
</pre>

But that's not the behavior you want if you're using a fenced code processor which adds the <pre><code> wrappers for you, or if you don't want <pre><code> wrappers at all.

Installation

<package manager> add [-D] @olets/markdown-it-wrapperless-fence-rule

Usage

import markdownItWrapperlessFenceRule from '@olets/markdown-it-wrapperless-fence-rule';
import MarkdownIt from 'markdown-it';

const md = MarkdownIt();

md.renderer.rules.fence = markdownItWrapperlessFenceRule;

md.use(/* … */);

Contributing

Thanks for your interest. Contributions are welcome!

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Check the Issues to see if your topic has been discussed before or if it is being worked on.

Please read CONTRIBUTING.md before opening a pull request.

License

See LICENSE.

Keywords

FAQs

Package last updated on 22 Nov 2024

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