在降价中将图例或标题放在插入的图形下的简单方法?

Simple way to put legend or caption under inserted graph in markdown?

是否有原生降价方式将标题或图例或键(不需要一些 html 东西)放在插入的图像或图表下面,就像我下面的例子一样?

![tags](http://matplotlib.org/_images/filled_step_00.png)
<center>**<u>Figure1</u>:** *here would be my legend under this graph*</center>

感谢您的帮助

简而言之,不行。您需要使用 HTML。

"native Markdown" 我假设您指的是 here 定义的原始基本规则集。从对这些规则的审查中可以清楚地看出,没有规定定义 "caption"。当然,一些 Markdown 解析器包含额外的 add-ons,其中一些可能包含对标题的一些支持,但它会是 non-standard 并且可能无法跨实现移植。

也就是说,通过标准 Markdown 创建标题并非不可能。作为规则 state:

For any markup that is not covered by Markdown’s syntax, you simply use HTML itself. There’s no need to preface it or delimit it to indicate that you’re switching from Markdown to HTML; you just use the tags.

但很明显,这是已知的,因为这个问题特别要求解决方案 "without requiring some html stuff"。但是,请注意规则中的前一段,其中解释了允许原始 HTML 的设计决策背后的哲学(强调保留):

Markdown is not a replacement for HTML, or even close to it. Its syntax is very small, corresponding only to a very small subset of HTML tags. The idea is not to create a syntax that makes it easier to insert HTML tags. In my opinion, HTML tags are already easy to insert. The idea for Markdown is to make it easy to read, write, and edit prose. HTML is a publishing format; Markdown is a writing format. Thus, Markdown’s formatting syntax only addresses issues that can be conveyed in plain text.

换句话说,HTML 是完成这项工作的正确工具。您的用例不符合 Markdown 的预期目的。 HTML 确实符合您的预期目的,因为 "HTML tags are already easy to insert" 您应该只使用 HTML.