我正在使用Symfony CMS,它使用Markdown来撰写文章。我需要做一个从Benjamin Franklin的引用块引用,并希望有一个下面的引用后面的引用,但现在它所做的就是块引用整行。如何在markdown语法中做到这一点?
发布于 2010-01-05 04:51:45
Markdown没有专用的引用语法。
你最好的选择是这样:
> Quote here.
>
> -- <cite>Benjamin Franklin</cite>这会导致:
报价请点击此处。
--本杰明·富兰克林
发布于 2011-01-27 06:10:23
> The secret to creativity is knowing how to hide your sources.
> -- <cite>[Albert Einstein][1]</cite>
[1]: http://www.quotedb.com/quotes/2112如果你有一本风格手册,使用它的指导方针来准确地确定引用的位置,等等。
以上Markdown + Smartypants的输出为
创造力的秘密是知道如何隐藏你的消息来源。-- Albert Einstein
发布于 2016-12-08 02:44:53
在这里添加另一个示例以供参考。从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)生成以下内容:
测试驱动开发是一种软件开发过程,它依赖于非常短的开发周期的重复:将需求转化为非常具体的测试用例,然后改进软件以通过新的测试。
https://stackoverflow.com/questions/2002120
复制相似问题