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
Jade >= 1.10.0
withUse 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.
Jade < 1.10.0
withjade = require 'jade'pfm = require 'pfm'jade.filters.markdown = pfm