I didn’t want to start a completely off-topic discussion in the typesetting thread, so I created a new thread. I’m playing with the idea of creating a language that is simple to read like Markdown, but that has a stricter syntax. It looks like Common Lisp. I think the parser should be implemented in Go.
(h1 A heading) (p This is (strong awfully) nice.) (h2 Another heading) Or, it could be written this way… (h1 A heading) (p This is (strong awfully) nice.) (h2 Another heading) There might be a rule that says that the first level doesn’t need the parentheses… h1 A heading p This is (strong awfully) nice. h2 Another heading There isn’t any information in that markup that says where the h1, p, or h2 tag ends, so it would be most sane to say that it ends at \n, unless the last character is a \. h1 A heading p This is (strong awfully) nice.\ \ Line breaks in a paragraph.\ h2 Another heading Hash signs might be better than h1, h2, … # A heading p This is (* awfully) nice. ## Another heading That’s the idea. I’d like to discuss the language here; the syntax and implementation details. Maybe it has already been done. Maybe the idea sucks.