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.

Revisions and Commits

Event Timeline

epriestley claimed this task.
epriestley added a subscriber: epriestley.

I believe this has been fixed by D20327 / D20393 -- at least, the examples above no longer seem to reproduce any bad behavior.

epriestley added revisions: Restricted Differential Revision, Restricted Differential Revision.May 20 2019, 12:03 PM