- More #s mean a larger visual footprint, which would be more appropriate for higher-level headings (cf. larger font size in rich-text rendering, and of course the = and - underlines). This is what bothers me the most.
- I tend to write documents bottom-up, starting with lowest-level headings, and higher-level headings are only introduced as the document evolves. Because I don’t know how many levels I’ll end up with, starting with a single # for the lowest level would work better.
- Lower-level headings are more frequent than higher-level headings, so having to type less for them makes sense, as well as reducing the likelihood to get the # count wrong (because you usually know what is a bottom-level heading, or the next one up, and you don’t have to know how many levels there are overall).
The existing convention mirrors the numbering levels of numbered headings, but I don’t find that visually convincing. It also matches the HTML h1-h6 elements of course, but nowadays that should be less of a concern.
Another thought is that maybe the headings hierarchy should be unlimited in both directions, so that you are never forced to shift all headings. One possibility to achieve that could be:
### even higher level
## higher level
# base level
.# sub level
.## sub-sub level
.### sub-sub-sub level
That syntax mirrors the magnitudes of decimal numbers. It’s just an idea I’ve been pondering, I’m not totally convinced myself. ;)Alternatively, that’s where the “negative” levels would come in (i.e. the .# levels above).
While in theory I understand the appeal of the "WYSIWYG" syntax of underlining headings, in practice I've always found it less readable than expected. Consider, for instance:
I am a paragraph belonging to the previous section but it looks like the heading belongs to me.
I am a heading indicating a new section
=======================================
I am a paragraph belonging to the heading but the heading is weirdly separated from me.
I am another paragraph belonging to the heading.
In some editors/IDE, the underline even gets highlighted / boldfaced, thereby exacerbating this effect.> In some editors/IDE, the underline even gets highlighted / boldfaced, thereby exacerbating this effect.
I think a lot of editors just don't know about this style of heading, but they do know that a line of three or more dashes is used to create a horizontal rule, so they're trying to highlight that.
Perl program https://sourceforge.net/p/rosegarden/code/HEAD/tree//branche...
Documentation https://sourceforge.net/p/rosegarden/code/HEAD/tree//branche...
I wonder now how much of this was picked up unknowingly from Setext-derived documents.
1) Constantly fixing them to match the length of the heading, or just suck it up and always use the short form:
My Heading
----
2) You're typing twice as much. I can easily start a line with # to make a heading, vs write the heading line, then carriage return, then add a bunch of dashes to make it a heading.3) This is the fatal flaw - you only get 2 levels of headings when using underlines.
2) Yes, that mostly implies [1],[2]... pattern. Have to think of other solutions.
1) Well, yes. Aestetics is difficult to quantify. I use empty lines so headers stand out.
1) the use of # rather than underline for headings. That why I feel you loose the beauty of the source form - headers disappear visually without a smart editor - if you demand a smart/wysiwyg editor anyway... Might just use a sgml/xml/html subset.
2) one symbol references. This strikes me as overly limiting - why not alphanumeric string - or at the very least any number string? It feels a bit strange to be forced to count 1,2...9,a - and not be able to things like a1, a2, b11.
3) "no way to put backticks inside a code span." So, no (full) examples of restricted markdown in codeblocks? Not to mention the many languages that use backticks?
I think you might be happier with reStructuredText than markdown: https://en.m.wikipedia.org/wiki/ReStructuredText