This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add different counter-style for ordered lists based on their depth
Summary: Draft.js have only 1 type of counter-style for ordered lists - the numeric. Current Draft.js: https://pxl.cl/d7zZ Quip have a 3 different counter-styles, based on the depth: https://pxl.cl/d7x6 This can be added by implementing the second argument to the counter function: content: counter(ol1) ". "; to: content: counter(ol1,lower-alpha) ". "; For more info: https://css-tricks.com/numbering-in-style/ Browser support is excellent: https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type#Browser_compatibility (for Basic support) Reviewed By: flarnie Differential Revision: D7840010 fbshipit-source-id: 6655566baafd9c03468c1b1b7c83bdb5ecf1ada6
- Loading branch information