UNPKG

markdownlint

Version:

A Node.js style checker and lint tool for Markdown/CommonMark files.

45 lines (30 loc) 964 B
# `MD028` - Blank line inside blockquote Tags: `blockquote`, `whitespace` Aliases: `no-blanks-blockquote` This rule is triggered when two blockquote blocks are separated by nothing but a blank line: ```markdown > This is a blockquote > which is immediately followed by > this blockquote. In some cases, > these may be merged into one blockquote. ``` To fix this, ensure that consecutive blockquotes have text (or an HTML comment) in between: ```markdown > This is a blockquote. This is paragraph text. > This is a second blockquote. <!-- This is an HTML comment --> > This is a third blockquote. ``` If they are meant to be a single quote, add the blockquote symbol at the beginning of the blank line: ```markdown > This is a blockquote. > > This is the same blockquote. ``` Rationale: Some Markdown parsers will treat two blockquotes separated by one or more blank lines as the same blockquote, while others will treat them as separate blockquotes.