<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Markdown &#8211; 李辉 / Grey Li</title>
	<atom:link href="https://greyli.com/tag/markdown/feed/" rel="self" type="application/rss+xml" />
	<link>https://greyli.com</link>
	<description>一个编程和写作爱好者的在线记事本</description>
	<lastBuildDate>Sat, 15 Nov 2025 10:55:15 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.26</generator>

<image>
	<url>https://greyli.com/wp-content/uploads/2025/03/avatar-500-compressed-144x144.jpg</url>
	<title>Markdown &#8211; 李辉 / Grey Li</title>
	<link>https://greyli.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Markdown——简单的世界</title>
		<link>https://greyli.com/markdown-simple-world/</link>
		<comments>https://greyli.com/markdown-simple-world/#respond</comments>
		<pubDate>Sun, 11 Sep 2016 07:18:45 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[计算机与编程]]></category>
		<category><![CDATA[Markdown]]></category>

		<guid isPermaLink="false">http://withlihui.com/?p=1037</guid>
		<description><![CDATA[Markdown 是一种轻量级标记语言，创始人为约翰·格鲁伯（John Gruber）。它允许人们“使用易读易 [&#8230;]]]></description>
				<content:encoded><![CDATA[<div>
<p><b>Markdown</b> 是一种轻量级标记语言，创始人为约翰·格鲁伯（John Gruber）。它允许人们“使用易读易写的纯文本格式编写文档，然后转换成有效的XHTML(或者HTML)文档”。<br />
—— <a href="https://zh.wikipedia.org/wiki/Markdown" target="_blank">维基百科</a></p>
<p><span lang="zh-CN">很早就接触到</span><span lang="en-US">Markdown</span><span lang="zh-CN">，但投入使用是从用</span><span lang="en-US">Github</span><span lang="zh-CN">和S</span><span lang="en-US">tack O</span><span lang="en-US">verflow</span><span lang="zh-CN">开始的。使用Markdown，你不用再和难用的编辑器纠缠，手也不用离开键盘，这让你更专注于内容本身。</span></p>
<p>&nbsp;</p>
<h2>基本用法</h2>
<h3>Phrase Emphasis</h3>
<pre><code>*italic*   **bold**
_italic_   __bold__
</code></pre>
<h3>Links</h3>
<p>Inline:</p>
<pre><code>An [example](http://url.com/ "Title")
</code></pre>
<p>Reference-style labels (titles are optional):</p>
<pre><code>An [example][id]. Then, anywhere
else in the doc, define the link:

  [id]: http://example.com/  "Title"
</code></pre>
<h3>Images</h3>
<p>Inline (titles are optional):</p>
<pre><code>![alt text](/path/img.jpg "Title")
</code></pre>
<p>Reference-style:</p>
<pre><code>![alt text][id]

[id]: /url/to/img.jpg "Title"
</code></pre>
<h3>Headers</h3>
<p>Setext-style:</p>
<pre><code>Header 1
========

Header 2
--------
</code></pre>
<p>atx-style (closing #&#8217;s are optional):</p>
<pre><code># Header 1 #

## Header 2 ##

###### Header 6
</code></pre>
<h3>Lists</h3>
<p>Ordered, without paragraphs:</p>
<pre><code>1.  Foo
2.  Bar
</code></pre>
<p>Unordered, with paragraphs:</p>
<pre><code>*   A list item.

    With multiple paragraphs.

*   Bar
</code></pre>
<p>You can nest them:</p>
<pre><code>*   Abacus
    * answer
*   Bubbles
    1.  bunk
    2.  bupkis
        * BELITTLER
    3. burper
*   Cunning
</code></pre>
<h3>Blockquotes</h3>
<pre><code>&gt; Email-style angle brackets
&gt; are used for blockquotes.

&gt; &gt; And, they can be nested.

&gt; #### Headers in blockquotes
&gt; 
&gt; * You can quote a list.
&gt; * Etc.
</code></pre>
<h3>Code Spans</h3>
<pre><code>`&lt;code&gt;` spans are delimited
by backticks.

You can include literal backticks
like `` `this` ``.
</code></pre>
<h3>Preformatted Code Blocks</h3>
<p>Indent every line of a code block by at least 4 spaces or 1 tab.</p>
<pre><code>This is a normal paragraph.

    This is a preformatted
    code block.
</code></pre>
<h3>Horizontal Rules</h3>
<p>Three or more dashes or asterisks:</p>
<pre><code>---

* * *

- - - - 
</code></pre>
<h3>Manual Line Breaks</h3>
<p>End a line with two or more spaces:</p>
<pre><code>Roses are red,   
Violets are blue.</code></pre>
<h2> </h2>
<h2>其他规则</h2>
<ul>
<li>支持HTML标签，可以自由的插入HTML。</li>
<li>自动转义特殊字符：“&amp;”和“&lt;”。</li>
<li>如果你想显示一个被用作标记的符号，使用反斜线进行转义。比如下面这行将不会加粗文本，而只是显示出两个星号。</li>
</ul>
<pre class="">\*literal asterisks\*</pre>
<ul>
<li>可以被转义的符号：</li>
</ul>
<pre><code>\   backslash
`   backtick
*   asterisk
_   underscore
{}  curly braces
[]  square brackets
()  parentheses
#   hash mark
+   plus sign
-   minus sign (hyphen)
.   dot
!   exclamation mark</code></pre>
<h2> </h2>
<h2>编辑器</h2>
<p>大部分编辑器都能实现即时预览和PDF、HTML文件输出。下面的推荐来自维基百科的<a href="https://zh.wikipedia.org/wiki/Markdown" target="_blank">Markdown词条页面</a>。</p>
<ul>
<li><a class="external text" href="http://www.zybuluo.com/mdeditor" rel="nofollow">Cmd Markdown</a> Cmd Markdown 编辑阅读器，支持实时同步预览，区分写作和阅读模式，支持在线存储，分享文稿网址。</li>
<li><a class="external text" href="http://dillinger.io/" rel="nofollow">Dillinger.io</a> 一个在线Markdown编辑器，提供实时预览以及到 <a title="GitHub" href="https://zh.wikipedia.org/wiki/GitHub">GitHub</a> 和 <a class="new" title="Dropbox (service)（页面不存在）" href="https://zh.wikipedia.org/w/index.php?title=Dropbox_(service)&amp;action=edit&amp;redlink=1">Dropbox</a> 的拓展连接。</li>
<li><a class="external text" href="http://notepag.es/" rel="nofollow">notepag</a> 另一个在线Markdown编辑器，支持实时预览，提供临时网址和和密码，可以分享给其他人。</li>
<li><a class="new" title="简书（页面不存在）" href="https://zh.wikipedia.org/w/index.php?title=%E7%AE%80%E4%B9%A6&amp;action=edit&amp;redlink=1">简书</a> 一个在线Markdown编辑器与阅读社区，支持实时预览，提供分享网址。</li>
<li><a class="external text" href="http://mouapp.com/" rel="nofollow">Mou</a> 一个Mac OS X上的Markdown编辑器。</li>
<li><a class="external text" href="http://macdown.uranusjr.com/" rel="nofollow">MacDown</a> OS X 上的 Markdown 开源编辑器，作者称其深受 Mou 启发。</li>
<li><a class="external text" href="http://www.markdownpad.com/" rel="nofollow">MarkdownPad</a> Windows上的全功能Markdown编辑器。</li>
<li><a class="external text" href="http://code.google.com/p/wmd/" rel="nofollow">WMD</a> a Javascript &#8220;<a title="WYSIWYM" href="https://zh.wikipedia.org/wiki/WYSIWYM">WYSIWYM</a>&#8221; editor for Markdown (from AttackLab)</li>
<li><a class="external text" href="http://code.google.com/p/pagedown/" rel="nofollow">PageDown</a> 一个Javascript写的 &#8220;WYSIWYM&#8221;(所见即所得)Markdown编辑器 (来自 StackOverflow)</li>
<li><a class="external text" href="http://ipython.org/notebook" rel="nofollow">IPython Notebook</a> 以IPython为后台，利用浏览器做IDE，支持Markdown与LaTex公式。</li>
</ul>
<p>&nbsp;</p>
</div>
<h2>参考链接</h2>
<ul>
<li>Markdown介绍：<a href="https://daringfireball.net/projects/markdown/" target="_blank">https://daringfireball.net/projects/markdown/</a></li>
<li>Markdown语法：<a href="https://daringfireball.net/projects/markdown/syntax" target="_blank">https://daringfireball.net/projects/markdown/syntax</a></li>
<li>维基百科页面：<a href="https://zh.wikipedia.org/wiki/Markdown" target="_blank">https://zh.wikipedia.org/wiki/Markdown</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/markdown-simple-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
