3 ms·
> Its lack of flexibility is an important feature, too (no JS, no styles, and only one way to make text bold) HTML has two ways to make things bold: b and stro
by squiggleblaz 5y ago
> Its lack of flexibility is an important feature, too (no JS, no styles, and only one way to make text bold)
HTML has two ways to make things bold: b and strong. But only one way to make a toplevel heading, h1.
Markdown has one way to make things bold: ** **, but two ways to make a toplevel heading: # or ======
Other users have commented that Markdown in the wild is now little more than an alternative syntax for HTML, with scripts and other tags freely embeddable.
Moreover, HTML is basically HTML: we used to have problems with browser compatibility, but most of those are in the land of CSS and Javascript now. Whereas Markdown can be found in different flavors. Aside from the burden on the author to know what flavor they are writing, it limits the reusability of documents. Consider a git repo that has a Github-flavored README.md file written for github, but it is also shown as part of the package documentation in a language specific library repository that shows the same README.md file using a simpler flavor of Markdown. The basic tags probably all work fine, but the broken CI badges will perhaps make it frustrating to read.
HTML and Markdown both began with the best of intents as declarative document markup schemes. But because it is much harder to design a declarative programmer interface than an imperative one, both have accreted junk.
- smt88 5y agoHTML has three other ways to make things bold using CSS > Markdown in the wild is now little more than an alternative syntax for HTML, with scripts and other tags freely embeddable HTML is not in the MD spec. We use a WYSIWYG MD editor so it's not an issue.
- ravi-delia 5y agoMarkdown has broader applications than HTML though. Pandoc is my preferred document writing system for exactly that reason. Of course, when you go for the weirder branches of Markdown spec you'll get weirder results, but the documentation is fantastic, and it's pretty easy to stick to the golden path.