Skip to content

Remark plugin for hugo style shortcode support (work with remark v13+)

License

Notifications You must be signed in to change notification settings

cqumirror/remark-content-shortcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remark plugin shortcode

This plugin support shortcode in Hugo style.

Install

Run:

# npm
npm install remark-content-shortcode

# yarn
yarn add remark-content-shortcode

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

About

Remark plugin for hugo style shortcode support (work with remark v13+)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published