pfm
v1.0.0
Published
Piták Flavored Markdown
Downloads
14
Readme
Piták Flavored Markdown (parser)
This module extends the marked
module to my liking.
- highlighting is done by
pygmentize
- In paragraphs,
~
renders to
- In inline code,
~
renders to∼
- Link to external hosts have
target="_blank"
options.highlight
is disabled (too lazy to implement)
Installation
npm install pfm
Integrations
with Jade >= 1.10.0
Use the jstransformer-pfm
module.
Jade deprecated Transformers support in filters in v1.10.0
and will be dopping it in favor of jstransformers
from v2.0.0.
with Jade < 1.10.0
jade = require 'jade'
pfm = require 'pfm'
jade.filters.markdown = pfm