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

remark-comment-config

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-comment-config

Configure remark with comments

  • 5.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.1K
increased by0.91%
Maintainers
1
Weekly downloads
 
Created
Source

remark-comment-config Build Status Coverage Status Chat

Configure remark with comments.

Installation

npm:

npm install remark-comment-config

Usage

var commentConfig = require('remark-comment-config');
var remark = require('remark');

var file = remark().use(commentConfig).process([
    '<!--remark commonmark bullet="*"-->',
    '',
    '1) Commonmark list (this is a parse setting)',
    '',
    '- List item (this is a stringification setting)',
    ''
].join('\n'));

console.log(String(file));

Yields:

<!--remark commonmark bullet="*"-->

1.  Commonmark list (this is a parse setting)

*   List item (this is a stringification setting)

API

remark().use(commentConfig)

Parses comments, such as <!--remark foo="bar" baz-->, and passes the “attributes” as parse and stringify.

Just like remark-yaml-config, but comments are invisible when rendering to HTML, such as on GitHub.

License

MIT © Titus Wormer

Keywords

FAQs

Package last updated on 23 Feb 2017

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