I've been missing a way to specify a div markdown
without using HTML tags. The (relatively) new
delimited code block syntax gave me an idea however.
Consider using a line of four or more periods to
start a div:
Para before div
....
First para inside div
Second para inside div
Third para inside div
....
Since one will often want and need to apply an ID
and/or class to a div one should be able specify
those. I suggest a CSS-like syntax inside braces
after the opening line of periods
.... {#id .class}
div content
....
One problem would be nested divs. I suggest marking
those by indenting. A code/pre block containing div
syntax would need to be doubly indented, similar to
such blocks inside lists:
.... {#outer_div}
Para of outer div
.... {#nested_div}
Para of nested div.
A code block illustrating div syntax
(a most unusual thing!):
....{#example_div}
This is how you specify a div
....
Another para in nested div
....
Another para in outer div
....
markdown
Of course one could mark nested divs by more periods in the
line (and then at least two more!):
.... {#outer_div}
Para of outer div
...... {#nested_div}
Para of nested div.
A code block illustrating div syntax
(a most unusual thing!):
....{#example_div}
This is how you specify a div
....
Another para in nested div
......
Another para in outer div
....
But I think indenting makes things cleaner, making it
easier to remember closing the divs you have opened, and not
to close more divs than you have opened. If you have very
many nested divs you should probably pause and consider why
anyway!
Original issue reported on code.google.com by bpjonsson@gmail.com on 7 Jan 2010 at 1:54
Original issue reported on code.google.com by
bpjonsson@gmail.com
on 7 Jan 2010 at 1:54