remark-content-shortcode

0.1.0 • Public • Published

remark plugin shortcode

This plugin support shortcode in Hugo style.

Example

An example is as follows:

{{% notice note %}}
this is a note
{{% /notice %}}

All the available shortcodes are:

{{% notice note %}}
this is a note
{{% /notice %}}

{{% notice info %}}
this is an info
{{% /notice %}}

{{% notice warn %}}
this is a warnning
{{% /notice %}}

{{% notice error %}}
this is an error
{{% /notice %}}

Don't forget to add a line blank behind and before each shortcode block. It's better to add a <br> behind each block.

LICENSE

MIT

Package Sidebar

Install

npm i remark-content-shortcode

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

6.01 kB

Total Files

4

Last publish

Collaborators

  • weearc