Skip to content

Files

Latest commit

0487a9e · Feb 1, 2023

History

History

paragraph-custom-alerts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 6, 2019
Feb 1, 2023
Feb 1, 2023

README.md

Paragraph Custom Alerts

This plugin allows paragraphs to be "tagged" by custom symbols, effecting their final render.

Symbol Meaning
=> success
-> info
~> warning
!> danger

Input:

Read below for more information...

!> Here be dragons. Proceed with caution!

=> You are victorious! Great victory!

Output:

<p>Read below for more information...</p>
<div class="alert alert-danger" role="alert">
  <p>Here be dragons. Proceed with caution!</p>
</div>
<div class="alert alert-success" role="alert">
  <p>You are victorious! Great victory!</p>
</div>