What is Markdown?

Markdown is a lightweight markup language that was created in 2004. It is one of the world’s most popular markup languages due to its simplicity and being lightweight. Markdown differs from using a WYSIWYG like Microsoft Word, where you need to click buttons to format words. Markdown syntax is used in the file to indicate how you want the word or phrase to look like.

For example, if you want to bold a word, you need to surround the word or phrase (**this phrase will be bold**). When you use Markdown, the changes in the text will not show immediately like a Word document. However, editors such as Visual Studio Code allow you to preview your Markdown file. The screenshot below shows this Markdown file displayed in Visual Studio Code: the pane on the left is the code and the pane on the right is the preview. Lastly, once you learn basic Markdown syntax, you can easily understand a Markdown file as plain text, as Markdown syntax is designed to be readable and unobtrusive.

Why use Markdown?

There are several reasons why you should use Markdown instead of a WYSIWYG editor.

  • Markdown is very versatile. It can be used for more than a README, it is used for notes, books (including this one), presentations, and websites.
  • It is easy to learn and easy to use.
  • Markdown is futureproof.

    • It will work on all operating systems.
    • It will work on all text-editing software.
    • It is non-proprietary.
    • Even if the application you are using stops working or is not being maintained anymore, you can still read your Markdown files.
    • For more information about futureproofing your project, check out our workshop on file formats.

What can we do with Markdown?

Given the simplicity of Markdown, it is very popular and used everywhere. Here are some examples of what you can do with Markdown:

  • Documents: Markdown is often used for technical documentation. Sites like GitHub integrate Markdown very well, and most repositories use Markdown for the README (check out our readme workshop).

  • Websites: You can create simple websites using Markdown (that gets rendered to HTML) using platforms like GitHub Pages or static site generators like Hugo and Jekyll

  • Books: You can create online textbooks with Markdown. Our Research Data Management textbook was created with Markdown!

  • Presentations: Presentation slides can be created with Markdown. People prefer creating slides with Markdown when they are presenting a lot of code. Our Introduction to the Unix Shell workshop provides slides which was created with Markdown.

Congrats!

You now know how the fundamentals of markdown and how to get set up and get started with markdown. Join us next time to learn markdown syntax.

Sources


Need help?

Please reach out to research.data@ubc.ca for assistance with any of your research data questions.


View in GitHub