Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Markdown: Why are there numerous implementations of the "Markdown" markup language?

Tags:

markdown

I was recently looking for a personal wiki and come upon Hatta, which uses Markdown simplify to editing and generate html. My question is why are there some many implementations of Markdown in Python, Javascript, PHP, etc. when an official Perl implementation already exists? Is there some benefit to having this choice?

like image 759
wp123 Avatar asked May 09 '10 15:05

wp123


People also ask

Why does Markdown exist?

Markdown was designed to make it easier for web writers to work with articles in an age where web publishing required writing HTML. So, the intent was to make it simpler to interface with text formatting in HTML.

What is Markdown language used for?

Definition of Markdown “Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).”

What is the difference between Markdown and markup language?

Markup is a general term for content formatting - such as HTML - but markdown is a library that generates HTML markup.

Why is Markdown popular?

In a brief, Markdown makes it easier to format text for web pages because its tags are simpler than HTML and automatically convert to HTML. This means you don't need to know HTML to write something for a web page because Markdown automatically converts your tags to HTML.


2 Answers

One point is that it's easier to rewrite than attempt to integrate a Perl script with whatever other language happens to be in use for development.

Another point is that John Gruber hasn't updated the original implementation in over five years, and quite a few people want something or other that isn't present in the original, so they add it themselves, often re-implementing it in the process.

Another point is that no matter how hard people push reuse of software, quite a few people have at least a little NIH attitude hidden somewhere, so they re-implement things unnecessarily. That's not entirely bad either -- it can help understanding, as well as lead to cleaner implementations over time (I have to say that -- I'm more guilty than most of writing my own instead of reusing what's already available).

People often start by writing something mostly for understanding -- but in the case of markdown, the specification is sufficiently simple that it's often hard to tell the difference between something written as an exercise for the author's own use, and code that's really suitable for production (a lot of web developers also lack the experience to know the difference, at least very well).

like image 135
Jerry Coffin Avatar answered May 27 '23 06:05

Jerry Coffin


Because not everyone runs perl?

You may as well ask why there are cars and buses when you can use your feet to get places.

like image 29
blowdart Avatar answered May 27 '23 07:05

blowdart