Citing the author of a blockquote using Markdown syntax
Solution 1:
Markdown has no dedicated citation syntax.
Your best bet is something like this:
> Quote here.
>
> -- <cite>Benjamin Franklin</cite>
which results in:
Quote here.
-- Benjamin Franklin
Solution 2:
> The secret to creativity is knowing how to hide your sources.
> -- <cite>[Albert Einstein][1]</cite>
[1]: http://www.quotedb.com/quotes/2112
If you have a style manual, use its guidelines to determine exactly where to place the citation, etc.
Output of Markdown + Smartypants for the above is
The secret to creativity is knowing how to hide your sources. -- Albert Einstein
Solution 3:
> Quote
— Benjamin Franklin
According to the HTML Living Standard, attribution for the quotation must be placed outside the blockquote
element.
Attribution for the quotation, if any, must be placed outside the blockquote element.
— HTML Standard: 4.4.4. The blockquote
element
Note that the cite
element represents the title of the work and must not be used to mark up people's names. For more detail check out HTML Standard: 4.5.6 The cite
element.
Instead of the hyphen, it is common to use the em dash (U+2014). Many Markdown parsers support Unicode, which means you can write the em dash directly, instead of using HTML entities. Writing such characters directly improves readability, more tools will know what you want and not panic, and your document might be more portable as you are not bounding yourself to HTML.
Solution 4:
Adding another sample here for reference. Generated from https://en.wikipedia.org/wiki/Special:CiteThisPage
> Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: requirements are turned into very specific test cases, then the software is improved to pass the new tests, only.
>
> --- [Test-driven development. (2016, November 20). In Wikipedia, The Free Encyclopedia. Retrieved 23:45, November 20, 2016](https://en.wikipedia.org/w/index.php?title=Test-driven_development&oldid=750634597)
Produces the following:
Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: requirements are turned into very specific test cases, then the software is improved to pass the new tests, only.
--- Test-driven development. (2016, November 20). In Wikipedia, The Free Encyclopedia. Retrieved 23:45, November 20, 2016