Comments (4)
Not really; this isn't a new block-level element, it's just the end of one that had already been started.
from djot.
OK. I’m torn:
- Div blocks look nice this way.
- The usability argument for paragraphs doesn’t change if it’s a closing block delimiter (vs. an opening block delimiter).
from djot.
Philosophically, I would almost prefer not to have any fenced constructs for this reason.
A side-marked div construct (like blockquotes, but with :
) has several advantages: (a) it is local (you don't need to look potentially far back in the file to see if you're in a div), (b) nesting is completely clear, (c) it doesn't have this problem with the end fence, (d) it is more consistent, since the other block containers are non-fenced (block quotes, list items).
When I've brought this up, though, in commonmark and pandoc forums, people have consistently preferred fenced syntax. I'm still not convinced, though. This could be brought up separately on the discussion list.
from djot.
Interesting!
Visually, it helps that closing delimiters have to match the colon counts of opening delimiters:
::::::
Outer
:::
Inner
:::
::::::
If others are interested – this is the discussion: “Side-marked instead of fenced divs?”
from djot.
Related Issues (20)
- Attribute references HOT 4
- Playground should provide examples
- Tables with a column of th elements HOT 1
- Typo in syntax.md
- Proposal: Punctuation Character for Code Block's language specifier HOT 6
- Playground: slow on Safari HOT 5
- Supporting “commands” in addition to “classes” in attributes? HOT 2
- Hard-wrapping: require subsequent lines to be indented/quoted? HOT 6
- Two asterisks for “strong”? HOT 3
- Inline footnotes?
- Support `<dfn>`, `<cite>` and `<i>`? HOT 2
- Parsing inconsistency: lazy paragraph lines in lists HOT 4
- Should block attributes mark a div block delimiter as opening? HOT 1
- section nesting for non-consecutive heading levels HOT 1
- [Proposal] more permissive definition of allowed symbol syntax HOT 43
- [Proposal] Remove leading whitespace HOT 2
- Allow any valid HTML4 identifier string to be a djot identifier string HOT 2
- Allow underscore in task list to denote unchecked item HOT 2
- loose list appears unexpectedly when using tight lists HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djot.