Page MenuHomePhabricator

Quotes breaks headings by default
Closed, ResolvedPublic

Description

When quoting a reply that contains a heading, the heading syntax gets rendered as plain text. This is presumably caused by the leading space. Note below that even when stripping spaces manually, ## still gets interpreted wrongly if a bullet list follows.


Example text.

== heading

  • Foo

## heading

  • Foo

Quoted (default):

Example text.

== heading

  • Foo.

## heading

  • Foo.
> 
> Example text.
> 
> == `==` heading ==
> 
> * Foo.
> 
> ## `##` heading
> 
> * Foo.

Screen Shot 2016-06-29 at 01.16.34.png (744×522 px, 45 KB)

Quoted (strip leading spaces on headings):

Example text.

== header

  • Foo.
  1. ## header
  2. Foo.

Quoted (strip all leading spaces):

Example text.

== header

  • Foo.

## header

  • Foo.