Socket
Socket
Sign inDemoInstall

remark-hint

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-hint

Sprinkle hints/tips/warnings on your documents


Version published
Weekly downloads
671
increased by6.51%
Maintainers
1
Weekly downloads
 
Created
Source

remark-hint

Sprinkle hints/tips/warnings on your documents.

installation

yarn add remark-hint

usage

Say we have the following markdown:

!> Here is a tip.

?> And a warning.

x> Or an error.

And our script looks as follows:

const remark = require('remark');

remark()
  .use(require('remark-hint'))
  .use(require('remark-html'))
  .process(src, (err, file) => console.log(String(file)));

Now, running it yields:

<p class="hint tip">Here is a tip.</p>
<p class="hint warn">And a waring.</p>
<p class="hint error">Or an error.</p>

Take a look at a sample of how it looks like.

license

BSD-3-Clause

Keywords

FAQs

Package last updated on 30 Mar 2021

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