Page MenuHomePhabricator

Remarkup on Dashboard: ## This is a Header As Well
Closed, WontfixPublic

Description

I enter the following for a text panel on a dashboard:

## This is a Header As Well

According to the Remarkup Reference I expect to see a level two header.

Instead I get a numbered list (1. This is a Header As Well).

It works for level one headers:

# Large Header

arcanist: 8f8fe44b05a464410ce2e2a797c96ec1f7d96c81
libphutil: e2cdf9f89c88721e7d0b578c30d05d97ea3d8b24
phabricator: f59a3821892758bd4b214817288f3a24c6e6a815

Event Timeline

devurandom raised the priority of this task from to Needs Triage.
devurandom updated the task description. (Show Details)
devurandom added a project: Dashboards.
devurandom updated the task description. (Show Details)
devurandom added a subscriber: devurandom.
epriestley claimed this task.
epriestley added a subscriber: epriestley.

We'll render this as a level 2 header if there is any text following it. For example (use "View Raw" to see the markup):

Header

This following text makes it render as a header.

The input text is ambiguously either a header or a numbered list. We render it as a header if:

  • were it interpreted as a list, it would contain only one item; and
  • there is some text after it.

The second rule stops previews from spazzing out if you're really typing a list, and the use of terminal headers in a document is very unusual.

Can you make unnumbered lists count as "text"? And to solve the ambiguous case where you want an unnumbered list as an item in a numbered list, you could use indention as a hint?

    1. This is a Header As Well
  • This is an unnumbered list
## This is a Header As Well
* This is an unnumbered list

If they're really separate, put a newline between them:

Header

  • Section text.

We parse and preserve indentation in lists; a reverse-indented list is a valid list and we're faithful about rendering it.

          • e
        • d
      • c
    • b
  • a