4 ms·
Well, yes, if you dumb your document down to the level of "markdown", it's not hard to grind them out as plain text with some styling. You can write HTML in th
by Animats 11y ago
Well, yes, if you dumb your document down to the level of "markdown", it's not hard to grind them out as plain text with some styling. You can write HTML in that style, too. People did that 20 years ago.[1] That was the original vision of HTML.
Some people wanted to stop there, and limit HTML to describing the semantics of a document, not its visual appearance. They lost.[2]
Pandoc doesn't really use "markdown". It uses "enhanced markdown":
"Pandoc’s enhanced version of Markdown includes syntax for footnotes, tables, flexible ordered lists, definition lists, fenced code blocks, superscripts and subscripts, strikeout, metadata blocks, automatic tables of contents, embedded LaTeX math, citations, and Markdown inside HTML block elements."
Pandoc's "markdown" now has roughly the feature set of HTML 3.
[1] http://www.animats.com/papers/articulated/articulated.html http://www.animats.com/papers/articulated/articulated.html
[2] http://www.w3.org/People/Raggett/book4/ch02.html http://www.w3.org/People/Raggett/book4/ch02.html
- jolux 11y agoIf you prove that those who thought HTML should be exclusively for semantics and not visual appearance "lost" by linking to a history of HTML that was last updated in 1998 it makes it seem as if you missed HTML5 when great pains have been taken to remove visual styling information from HTML in place of semantic markers. In fact most of the web developers I speak with regularly agree. The consensus in recent years is that HTML is supposed to be exclusively semantic and markup should be styled with CSS. http://www.csszengarden.com/ http://www.csszengarden.com/ is this concept taken to an extreme. Same HTML, same semantics, different styling.
- Animats 11y agoThe claim was made for HTML5 that it would do that. Some HTML5 page source does look like that, but not most of it.
- jolux 11y agoNo, there is a specification for HTML5, and it does exactly what I said it does. Granted, most "HTML5" is a mix of HTML 4 and HTML5 (sometimes even a little XHTML) but these are not strict validated sites. Here, try running a few websites through https://validator.w3.org/ https://validator.w3.org/ and see what pops up. You'd be surprised. For example, https://news.ycombinator.com https://news.ycombinator.com is extremely bad HTML5, and if you look at the report on it, https://html5.validator.nu/?doc=https%3A%2F%2Fnews.ycombinator.com&showimagereport=yes&showsource=yes https://html5.validator.nu/?doc=https%3A%2F%2Fnews.ycombinat... you can see a bunch of "Use CSS Instead" suggestions. This is the separation of style from semantics that HTML5 was made to reinforce.
- rhythmvs 11y agoYou are right. But “markdown” — not the brand, but the concept of lightweight markup — is a work in progress still. Just look at the list of “feature requests” on the CommonMark forum.¹ Pandoc’s Markdown supports lots of extra features from Github Flavored Markdown (GFM), MultiMarkdown and MarkdownExtra. John MacFarlane, Pandoc’s author, is also the author of the CommonMark spec. And while, eventually, the goal is to extend the CommonMark syntax with a sufficiently broad vocabulary of content element types, the focus now is on getting the basics right, speccing the edge cases, and defining standard parser behavior. Meanwhile, there is AsciiDoc (which is a port of DocBook xml to lightweight markup), for more demanding use cases. And then there is also reStructuredText, and org-mode, etc. But the markdownish-style of syntactical sugar won the race, and while doing so, it will be the basis for a future lightweight markup language that will do indeed support not-dumbed down written content, with the full variety of nuance that offer the likes of TEI, DocBook, TeX, and will be fit to reproduce the akme of complex documents and typesetting, such as critical editions and technical manuals. Until we reach that point, I bet on dumbed-down Markdown, and while doing so, can always add-in raw html ad libitum. The bulk of most written content, after all, is just headings and plain text, with a few emphasized phrases here and there, a link, an image. That covers a lot of use cases already. ¹ http://talk.commonmark.org/c/extensions http://talk.commonmark.org/c/extensions
- leephillips 11y agoEven the list you quote has features that are not in any version of HTML and never will be (automated tables of contents in HTML 3?). Plus, there is much else in pandoc-markdown that HTML will never be able to do, as it requires computing and is beyond declarative markup.
- maxerickson 11y agohtml tags are valid markdown. I don't think that is just pedantic nitpicking either, part of the design philosophy was to lean on html to do things that were not supported with markdown shortcuts. It's discussed early here: https://daringfireball.net/projects/markdown/syntax https://daringfireball.net/projects/markdown/syntax