私はSymfony CMSを使用しており、記事の執筆には Markdown を使用しています。ベンジャミン・フランクリンからの引用のブロック引用を行う必要があり、引用の後に引用を続けたいのですが、今は行全体をブロック引用するだけです。マークダウン構文でこれを行うにはどうすればよいですか?
6 に答える
Markdown には専用の引用構文はありません。
あなたの最善の策は次のようなものです:
> Quote here.
>
> -- <cite>Benjamin Franklin</cite>
その結果:
ここで引用します。
--ベンジャミン・フランクリン
> 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
参照用に別のサンプルをここに追加します。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)
以下を生成します。
テスト駆動開発 (TDD) は、非常に短い開発サイクルの繰り返しに依存するソフトウェア開発プロセスです。要件は非常に具体的なテスト ケースに変換され、ソフトウェアは新しいテストに合格するように改善されます。
---テスト駆動開発。(2016 年 11 月 20 日)。ウィキペディア、フリー百科事典。2016年11月20日23時45分閲覧
個人的には、blockquote を blockquote に入れ子にすることを好みます。
これが私が好きな方法です:
> Quote here.
>
>> <cite>Benjamin Franklin</cite>
出力はすべてをどのようにスタイルするかによって異なりますが、プレーンな `ol github を使用すると、次のようになります。個人的には素晴らしいと思います!