Inline citations are references to external sources directly embedded within the text itself. They serve multiple purposes, including providing evidence for claims, giving credit to original authors, and guiding readers to additional resources for further exploration.

We can use Markdown’s footnotes1 syntax to use inline citation in Markdown (.md) files. Similar to how citations are used in academic writing, footnotes are a suitable method for referring to links, books, papers, and other sources without disrupting the flow of the text. This technique is applicable not only to GitHub README files but also to any static web generator (like Hugo2, Jekyll3) that supports markdown syntax.

Example of inline citation in Markdown syntax

Let’s consider an example where we want to cite both a blog post and a book inline using Markdown syntax. We can incorporate the citations like this:

SYCL[^shovon_2024] is an open industry standard that simplifies parallel programming[^reinders2021data] tasks.

**References**:

[^shovon_2024]: [Introduction to SYCL and DPC++](https://arshovon.com/blog/sycl-docker-interactive/)
[^reinders2021data]: Reinders, J., Ashbaugh, B., Brodman, J., Kinsner, M., Pennycook, J., & Tian, X. (2021). Data parallel C++: mastering DPC++ for programming of heterogeneous systems using C++ and SYCL (p. 548). Springer Nature.

Example citation in Markdown syntax:

SYCL4 is an open industry standard that simplifies parallel programming5 tasks.

References:


  1. Footnotes: Github docs [return]
  2. Hugo: The world’s fastest framework for building websites [return]
  3. Jekyll: Transform your plain text into static websites and blogs [return]
  4. Introduction to SYCL and DPC++ [return]
  5. Reinders, J., Ashbaugh, B., Brodman, J., Kinsner, M., Pennycook, J., & Tian, X. (2021). Data parallel C++: mastering DPC++ for programming of heterogeneous systems using C++ and SYCL (p. 548). Springer Nature. [return]

Advertisement

Citation

APA Style
Shovon, A. R. (2024, April 13). Citation in Markdown syntax for Hugo, Jekyll, and Github Readme files. Ahmedur Rahman Shovon. Retrieved May 21, 2024, from https://arshovon.com/snippets/cite-in-markdown/
MLA Style
Shovon, Ahmedur Rahman. “Citation in Markdown syntax for Hugo, Jekyll, and Github Readme files.” Ahmedur Rahman Shovon, 13 Apr. 2024. Web. 21 May. 2024. https://arshovon.com/snippets/cite-in-markdown/.
BibTeX entry
@misc{ shovon_2024,
    author = "Shovon, Ahmedur Rahman",
    title = "Citation in Markdown syntax for Hugo, Jekyll, and Github Readme files",
    year = "2024",
    url = "https://arshovon.com/snippets/cite-in-markdown/",
    note = "[Online; accessed 21-May-2024; URL: https://arshovon.com/snippets/cite-in-markdown/]"
}