Sprinkle hints/tips/warnings on your documents
npm install remark-hintSprinkle hints/tips/warnings on your documents.
``bash`
yarn add remark-hint
Say we have the following markdown:
`markdown
!> Here is a tip.
?> And a warning.
x> Or an error.
`
And our script looks as follows:
`javascript
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:
` Here is a tip. And a waring. Or an error.html``
> Take a look at a sample of how it looks like.
BSD-3-Clause