Writing with Markdown
The body of the document is where you will do your writing. Writing will happen primarily in the Markdown format (LaTeX and HTML would also work, depending on the output format).
Markdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents. - Markdown Guide
Markdown Syntax
If you’re not familiar with Markdown, you can familiarize yourself with it in a couple of minutes using the following link: https://learnxinyminutes.com/docs/markdown/.
Additionally, you can use the Visual Editor, either in VS Code or RStudio, to see Markdown syntax previewed in it’s final format as you write. The Visual Editor also has some common Word-like shortcuts, such as CTRL+b
to make text bold.
Some things you can do with Markdown:
- Headings can be created for sections and subsections using the
#
hashtag character. So# Heading 1
for a top-level heading and## Heading 2
for a second-level heading and so on. - Text can be formatted in italic or bold using the
*
asterisk character.**This text would become bold**
- Bullet point lists can be created with a
-
hyphen or*
asterisk for each line in the list. - Links can be embedded by writing in the following way:
[text to hyperlink](link)
- Plain code can be embedded in text using the ` backtick character. Code can be embedded as well, but we will cover that in the next section.
- Images can be included using

Exercise
Recreate the following paragraph1 using markdown:
Introduction
Why use Markdown when you can press buttons in an interface to format your text? As it turns out, there are several reasons why people use Markdown:
- Markdown can be used for everything. People use it to create websites, documents, notes, books, presentations, email messages, and technical documentation.
- Markdown is portable.
- Files containing Markdown-formatted text can be opened using virtually any application. If you decide you don’t like the Markdown application you’re currently using, you can import your Markdown files into another Markdown application.
- That’s in stark contrast to word processing applications like Microsoft Word that lock your content into a proprietary file format.
- Markdown is platform independent. You can create Markdown-formatted text on any device running any operating system.
- Markdown is future proof. Even if the application you’re using stops working at some point in the future, you’ll still be able to read your
Markdown-formatted text
using a text editing application. This is an important consideration when it comes to books, university theses, and other milestone documents that need to be preserved indefinitely.- Markdown is everywhere. Websites like Reddit and GitHub support Markdown, and lots of desktop and web-based applications support it.
Here is the Markdown logo (link: https://upload.wikimedia.org/wikipedia/commons/4/48/Markdown-mark.svg)
Source: Markdown Guide↩︎