DEV Community

[Comment from a deleted post]
Collapse
 
kspeakman profile image
Kasey Speakman

There are too many ambiguous situations in markdown that are unambiguous in HTML. Any scenario where you want to use one of the markdown characters like asterisk and also style it or just nesting/combining markdown parts can give surprising results. And this can vary between implementations. That's another issue is that there is no markdown standard. We are probably familiar primarily with github-flavored markdown because we are coders and github is ubiquitous for us.

The main sweet spot for markdown is when you want to give users some text formatting tools without letting them directly inject HTML, which would provide an attack surface area. Although some implementations add limited HTML element support too. Especially ones without a direct markdown equivalent like subscript and superscript.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I realize thats MDs purpose but with some language development I'm sure it could be competitive. I wasn't clear sorry.

Collapse
 
kspeakman profile image
Kasey Speakman • Edited

Ah, I see. I suppose the main concern is still just the fundamental ambiguity of the syntax. E.g. asterisk, hyphen, underscore being used for multiple styles and sometimes interchangeably. I still find using certain markdown elements to be trial and error in combination with others (lists, tables). And not necessarily portable. Because of the ambiguity, seems like a standardization would get bogged down in defining defaults for the many corner cases. Seems better to take the improvements and make a more precise document language that could be standardized. But who knows? Perhaps I lack the proper imagination for the task. I do love markdown myself.

Collapse
 
limusina10 profile image
limusina10

Also HTML has atributes and functions that with markdown we can't nowadays:
If I want to center, right/left align, a text, change the colour and more CSS features.