hackmdio / codimd

CodiMD - Realtime collaborative markdown notes on all platforms.
https://hackmd.io/c/codimd-documentation
GNU Affero General Public License v3.0
9.28k stars 1.06k forks source link

Support alternative formatting for [indented] ordered lists #543

Open patcon opened 7 years ago

patcon commented 7 years ago

GitHub by default uses a different format at each level of a nested ordered list:

  1. testing
    1. child
      1. grandchild
    2. back to this child

Would it be possible for hackmd to support the same thing? (It would make taking meeting notes much easier to follow!) :)

ccoenen commented 7 years ago

you can do this as a workaround (example):

<style>
    ol ol {
      list-style: lower-roman;
    }
    ol ol ol {
      list-style: lower-latin;
    }
</style>
1. test
1. test 2
    1. child 2.1
        1. grandchild 2.2
    1. subtest 2.2
    1. subtest 2.2
1. test 3
ccoenen commented 7 years ago

If anyone wants to make a pull request adding those (or similar) styles, I think that would be accepted. The current "numbers only" can get a little confusing.

SISheogorath commented 7 years ago

~I would say the renumbering is actually an upstream issue. It should be done here: https://github.com/codemirror/CodeMirror/blob/c9ea0ee56ea65c17150b92e50539dafc6515aba4/addon/edit/continuelist.js~

Edit: The part above landed in the wrong issue. Sorry for that.

The styling part is on the hackmd side.