You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Heading level 1
** Heading level 2
*** Heading level 3
**** Heading level 4
***** Heading level 5
---
---
---
Text under second level heading
===
Text in root level of document
User need to use multiple weak delimiting modifiers to close a middle level heading; heading with level that is lower than root but higher than current. But it is really hard to know how many weak delimiting modifiers are needed to go back to exact heading level in the middle of the long document.
Solution
Replace both delimiting modifiers with empty heading (prefix without following paragraph.)
* Heading level 1
** Heading level 2
*** Heading level 3
**** Heading level 4
***** Heading level 5
***
Text under Second level heading
*
Text in root level of document
Benefits
can be explicit about which level of heading it will close.
doing a job of two syntax elements (weak delimiting modifier & strong delimiting modifier), resulting less special punctuation and easier to parse
can close middle level heading easily
prevent closing heading while typeing level 3+ list item prefix. this was annoying
The text was updated successfully, but these errors were encountered:
Alternatively, we can implement same thing by just allowing heading without title.
* Heading level 1 (heading title: (title)
** Heading level 2 (heading title: (title)
*** Heading level 3 (heading title: (title)
**** Heading level 4 (heading title: (title)
***** Heading level 5 (heading title: (title))))
*** (heading
Text under Second level heading (paragraph))))
* (heading
Text in root level of document (paragraph))
By syntax, paragraph 1 is at level 3 and not 2. But as there is no title in heading, user won't notice the difference.
In this implementation, we won't have level 0 though (except blocks above the first heading in document)
Problem
User need to use multiple weak delimiting modifiers to close a middle level heading; heading with level that is lower than root but higher than current. But it is really hard to know how many weak delimiting modifiers are needed to go back to exact heading level in the middle of the long document.
Solution
Replace both delimiting modifiers with empty heading (prefix without following paragraph.)
Benefits
The text was updated successfully, but these errors were encountered: