简体   繁体   中英

Change ordered list style in Jupyter notebook

I want to change the "bullets" (whatever one calls them) for the ordered lists in my Jupyter notebook. I've tried putting the following in ~/.jupyter/custom/custom.css , but it doesn't make a difference:

ol {list-style-type: lower-alpha}

I've tried adding .rendered_html as a CSS selector too, but it didn't help.

I want to type, in a markdown cell, something like:

1. First item
2. Second item

and have, instead of

  1. First item
  2. Second item

something like

a) First item

b) Second item

(except actually as an ordered list). How can I achieve a different "bullet" in the ordered lists generated from Markdown in Jupyter notebook cells?

You can simply use

{<ul>
<li>the first unordered item</li>
<li>the second unordered item</li>
<li>...</li>
</ul>}
  • the first unordered item
  • the second unordered item
  • ...
and it will be presented by bullet listed. However, it does not work for Jupiter notebook or GitHub text editor. Find more on - https://www.w3schools.com/cssref/tryit.asp?filename=trycss_list-style-type_all

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM