I am trying to format a Markdown blockquote in a Stack Overflow post where:
- The first line is larger (like a header).
- The following lines are normal size.
- Each line is separated by single line breaks, not full paragraph spacing.
Desired appearance:
Initially I tried using an <h1> header tag on the first line and two spaces for line breaks. This rendered the first line correctly, but the two-space line breaks on the following lines were ignored.
> <h1>BIG CHART TITLE</h1>
> small-font metric 1
> small-font metric 2
> small-font metric 3
BIG CHART TITLE
small-font metric 1 small-font metric 2 small-font metric 3
I tried several other methods, such as using <br> tags,
> <h1>BIG CHART TITLE</h1>
> small-font metric 1<br>
> small-font metric 2<br>
> small-font metric 3
using # for the header instead of <h1>,
> # BIG CHART TITLE
> small-font metric 1
> small-font metric 2
> small-font metric 3
and adding a blockquote marker below the header,
> <h1>BIG CHART TITLE</h1>
>
> small-font metric 1
> small-font metric 2
> small-font metric 3
but each of these added a larger paragraph-like gap after the header instead of a single line break.
BIG CHART TITLE
small-font metric 1
small-font metric 2
small-font metric 3
I've had so much trouble reproducing the desired effect, I resorted to abusing non-breaking spaces in order to make the example screenshot earlier in this post.
How can I make a multi-line blockquote in Markdown where the first line is large, followed by normal sized lines, with small, single line-break spacing between each line? I am open to using in-line HTML tags mixed with markdown.
This question was inspired by a Super User question about mixing font sizes in Excel chart titles.


h1in a blockquote you'll see the default h1-margins. SO (and other platforms like github) may add a CSS rule to remove this margins in blockquotes. But you can't override this style in markdown itself. Bear in mind markdown is not intended as a full-blown HTML abstraction. These style restrictions are intentional to prevent potentially distracting style changes across multiple posts. While I agree from a design prespective the defaults could sometimes be prettier (epecially tables) - I really doubt we'll ever see extensions allowing us more typographic options in markdown