markdown-it-blockquote-cite
This is a fork from https://github.com/bitcrowd/markdown-it-attribution which adjusts the functionality to our needs, removes most of the features we don't use and refactors the code a bit. It's a very specialized version of the original plugin, so please use at your own risk.
Namely this plugin allows to generate proper <blockquote>
tags with nested <cite>
tags, just like this:
> Quoted text here. Lorem ipsom etc> More quoted text here. Lorem ipsom etc> --- Ms. Cited Name-Here
Will be rendered as:
Quoted text here. Lorem ipsum etc More quoted text here. Lorem ipsum etc Ms. Cited Name-Here
Install
yarn add bitcrowd/markdown-it-blockquote-cite#master
If you don't use yarn
:
npm install --save bitcrowd/markdown-it-blockquote-cite#master
Usage
;; const mdit = ;const blockquote = '> Quoted text here. Lorem ipsom etc' '> More quoted text here. Lorem ipsom etc' '> --- Ms. Cited Name-Here'; mdit;
Options are optional, attributionPrefix
defaults to --
;