unified

Project: sergioramos/remark-hint

Package: remark-hint@1.0.5

  1. Dependencies: 1·Dependents: 0
  2. Sprinkle hints/tips/warnings on your documents
  1. remark 186
  2. markdown 115
  3. html 110
  4. remark-plugin 71
  5. warning 3
  6. error 3

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 waring.

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