by abeppu · 5y ago · 0 comments
I agree with those, and I wouldn't reach for dumbdown either.
But maybe more interesting is the tree notation thing that this is meant to be a use case of. So far as I can tell, the tree-notation thing is a declarative DSL for grammars and textual "compilers", like maybe a very simplified ANTLR? Dumbdown is a ~100 line example, so even if it's not useful as a "real" format, it does seem illustrative of the tooling. And that tooling makes me think ... maybe we would have been better off if markdown (and extensions like GH-flavored markdown) had been implemented and shared as declarations in a language-description DSL.
Usually, creating a new DSL is a complex programming task; yet with Tree Notation, a domain expert may tweak an existing DSL or even build a simple one from scratch. As you say, maybe the markdown ecosystem would benefit from this approach.
I call the concept "Type the World" (https://breckyunits.com/type-the-world.html)
Here's an early hacky prototype called "World Wide Types" (WWT): https://jtree.treenotation.org/designer/#standard%20wwt
Are images [img.jpg(alt text)] or (img.jpg[alt text])? I forgot. <img src="img.jpg" alt="text"> is way easier to remember. Is it ''bold'' '''italic''' or "bold" 'italic' or 'bold' ''italic''? <b>bold</b> <i>italic</i> is MUCH more intuitive.