如何使用Markdown制作字母列表? [英] How do you make lettered lists using markdown?

查看:86
本文介绍了如何使用Markdown制作字母列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Markdown 允许使用数字的有序列表.我该如何使用字母获取有序列表?即

Markdown allows ordered lists using numbers. How can I instead get an ordered list using letters? i.e.

A. the letter A
B. the letter B
C. etc

代替

1. the number 1
2. the number 2
3. etc.

推荐答案

标准Markdown似乎没有此功能.您可以:

It doesn't appear that standard Markdown has this capability. You can:

  1. 使用CSS,方法是将其放在markdown文档中的某个位置(请注意,这会影响文档中所有有序列表)

  1. Use CSS, by putting this somewhere in your markdown document (note, this will effect all ordered lists in the document)

<style type="text/css">
    ol { list-style-type: upper-alpha; }
</style>

  • 使用markdown的扩展版本. Pandoc markdown具有fancy_lists扩展名,可让您用字母和罗马数字标记列表.

  • Use an extended version of markdown. Pandoc markdown has a fancy_lists extension that will allow you to mark lists with letters and roman numerals.

    http://johnmacfarlane.net/pandoc/demo/example9/pandocs- markdown.html

    这篇关于如何使用Markdown制作字母列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆