Markdown is a simple language designed to streamline content writing. It’s used everywhere, from GitHub to note-taking apps. Whether you’re a writer, developer, or just someone who wants to simplify your web writing, this guide is for you!
Markdown is a lightweight markup language, created by John Gruber in 2004, to make formatted text easily readable in plain-text editors. It’s especially popular for blogging, instant messaging, forums, collaborative tools, documentation, and readme files. Over time, variations in its interpretation led to the creation of CommonMark in 2014, a clearer specification with a test suite to ensure consistent implementation.
Here’s a quick rundown of the most common elements you’ll need:
Headers are created by using the #
symbol, followed by a space:
# This is an H1
## This is an H2
### This is an H3
For italic use *asterisks*
or _underscores_
.
For bold use **double asterisks**
or __double underscores__
.
Use asterisks, plus, or minus followed by a space:
* Item 1
* Item 2
* Subitem 2.1
* Subitem 2.2
Simply use numbers followed by periods:
1. First item
2. Second item
3. Third item
You can create an inline link with the following syntax:
[Displayed Text](URL "Optional Title")
Images are similar to links but with a preceding exclamation mark:
![Alternative Text](URL "Optional Title")
For blockquotes, use the >
character before your text:
> This is a blockquote.
For inline code
, wrap your code with backticks:
`code goes here`
For multi-line code blocks, use triple backticks:
\```
Line 1 of Code
Line 2 of Code
Line 3 of Code
3 of Code
\```
You can create a horizontal line with three dashes, asterisks, or underscores:
---
| Header1 | Header2 |
|---------|---------|
| cell1 | cell2 |
| cell3 | cell4 |
Header1 | Header2 |
---|---|
cell1 | cell2 |
cell3 | cell4 |
- [x] Completed task
- [ ] Incomplete task
Use ~~
to strikethrough text:
~~strikethrough~~
In your Markdown file, you can add citations using the @
symbol followed by the citation key. For example:
According to recent studies [@Smith2023], the effect is...
You can also use multiple citations:
Some scholars argue this point [@Smith2023; @Doe2022].
Parenthetical (or in-text) citations place the author and year within parentheses:
This phenomenon has been observed in several contexts (e.g., [@Smith2023]).
Narrative citations incorporate the author directly into the sentence:
According to @Smith2023, the phenomenon...
You can provide more specific locations or qualifiers to your citations by adding prefixes, locators, and suffixes:
As rightly pointed out [-@Smith2023, p. 23; see also @Doe2022, ch. 2].
[@Smith2023, p. 23-25]
[@Doe2022, ch. 2]
Note the use of -
before @Smith2023
. This prevents the author’s name from being repeated when you want a parenthetical citation. Without the -
, it would be treated as a narrative citation.
For creating and managing your bibliography, we recommend using CiteDrive. CiteDrive is a cloud-first, collaborative, BibTeX-native reference manager designed specifically for Overleaf, LaTeX, and R Markdown users. It simplifies the process of curating and exporting citations in the .bib
format.
Here’s a sample BibTeX entry you might have in your .bib
file:
@article{Smith2023,
title = {Title of the Study},
author = {Smith, John},
year = 2023,
journal = {Journal Name},
volume = 5,
pages = {10--20}
}
Pandoc can convert your Markdown file with citations into a properly formatted document using a CSL style. Here’s a basic example command:
pandoc yourfile.md --citeproc
--bibliography=yourbibfile.bib
--csl=yourcslstyle.csl -o output.docx
Where:
yourfile.md
is your markdown file.--citeproc
enables the citation processor.yourbibfile.bib
is your bibliography file.yourcslstyle.csl
is your chosen citation style (like APA, MLA, etc.). There are many CSL styles available online.output.docx
is the desired output file (in this case, a Word document).Remember, you’ll need both Pandoc and the appropriate CSL files for this to work. The final output will depend on the CSL style you choose.