---
title: "Lists"
output: pdf_document
---
A list with bullet points:
- Something
- Something else
A numeric list:
1. Something
1. Something else
A list using small letters:
a) Something
a) Something else
A list using capital letters:
A) Something
A) Something else
<style type="text/css">
/* Indent Formatting */
/* Format: a-1-i-A-1-I */
ol {list-style-type: lower-alpha;}
ol ol { list-style-type: decimal;}
ol ol ol { list-style-type: lower-roman;}
ol ol ol ol { list-style-type: upper-alpha;}
ol ol ol ol ol { list-style-type: decimal;}
ol ol ol ol ol ol { list-style-type: upper-roman;}
/* https://www.w3schools.com/cssref/pr_list-style-type.asp */
/* https://stackoverflow.com/questions/11445453/css-set-li-indent */
/* https://stackoverflow.com/questions/13366820/how-do-you-make-lettered-lists-using-markdown */
</style>
<ol style="list-style-type: upper-alpha">
<li>the letter A</li>
<li>the letter B</li>
<li>etc</li>
</ol>
Markdown 不是 HTML 的替代品,甚至不接近 HTML。它的语法非常小,仅对应于 HTML 标记的一个非常小的子集。我们的想法不是创建一种语法,使插入 HTML 标记更加容易。在我看来,HTML 标记已经很容易插入了。Markdown 的理念是使散文的阅读、写作和编辑变得容易。HTML 是一种发布格式; Markdown 是一种书写格式。因此,Markdown 的格式化语法只能解决可以用纯文本传达的问题。
对于 Markdown 语法没有涵盖的任何标记,您只需使用 HTML 本身。没有必要在它的前面加上或者划分它来表示您正在从 Markdown 切换到 HTML; 您只需要使用标记。
唯一的限制是块级 HTML 元素ーー例如 <div>、 <table>、 <pre>、 <p>等ーー必须用空行与周围的内容分开,块的开始和结束标签不应该用制表符或空格缩进。Markdown 足够聪明,不会在 HTML 块级标记周围添加额外的(不需要的) <p>标记。