Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 518 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 518 Bytes

markdown-it-spoiler

!!spoiler!! plugin for markdown-it markdown parser

!!spoiler!! => <span class="spoiler">spoiler</span>

Installation

$ npm i @traptitech/markdown-it-spoiler

frontPriorMode(default: false)

when false

!!!spoiler!! => !<span class="spoiler">spoiler</span> !!spoiler!!! => <span class="spoiler">spoiler!</span>

when true

!!!spolier!! => <span class="spoiler">!spoiler</span> !!spolier!!! => <span class="spoiler">spoiler</span>!