Socket
Socket
Sign inDemoInstall

metalsmith-markdown-remarkable

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-markdown-remarkable

A Metalsmith plugin to convert markdown files via Remarkable.


Version published
Weekly downloads
65
increased by1525%
Maintainers
1
Weekly downloads
 
Created
Source

metalsmith-markdown-remarkable

A Metalsmith plugin to convert markdown files via Remarkable. Derived from metalsmith-markdown.

npm

This repository is looking for a maintainer.

Installation

npm install metalsmith-markdown-remarkable

Warning: Remarkable version

If you care about what Remarkable is bundled herein, please note:

  • v1.* of this plugin now use Remarkable 1.*
  • v2.* use Remarkable 2.*

(Remarkable was originally – and carelessly – upgraded to 2.0 in v1.0.1, now deprecated. Thanks to @jja for the heads-up.)

CLI usage

Add metalsmith-markdown-remarkable to your metalsmith.json plugins with any Remarkable options you want:

{
  "plugins": {
    "metalsmith-markdown-remarkable": {
      "breaks": true,
      "typographer": true,
      "quotes": "«»‘’"
    }
  }
}

Javascript usage

Pass the plugin to Metalsmith via use(), optionally setting Remarkable preset and options (or just the latter):

var markdown = require('metalsmith-markdown-remarkable');

metalsmith.use(markdown('full', {
  breaks: true,
  typographer: true,
  quotes: '«»‘’'
}));

Passing Remarkable plugins

The plugin also defines a use() function, which passes whatever you give it to Remarkable's own use():

metalsmith.use(markdown().use(remarkablePlugin));

If you have multiple Remarkable plugins, just chain calls:

metalsmith.use(markdown().use(plugin1).use(plugin2));

License

MIT

FAQs

Package last updated on 09 Dec 2022

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