Skip to content

Conversation

ihd-dev
Copy link

@ihd-dev ihd-dev commented Oct 28, 2020

This PR enables:

A user to set custom labels (and effectively make custom list types), by accepting a customLabel option being a function which receives the relevant number and the level. Thereby a user can achieve a list looking something like:
(a) First Item.
1. Sub item
(b) Second Item

A user to set custom indents depending on the list level, by accepting options of customTextIndent and customItemIndent.

What kind of change does this PR introduce?

Checklist:

  • Unit Tests
  • Documentation
  • Update CHANGELOG.md
  • Ready to be merged

This PR enables:

A user to set custom labels (and effectively make custom list types), by accepting a `customLabel` option being a function which receives the relevant number and the level. Thereby a user can achieve a list looking something like:
(a)   First Item.
       1. Sub item
(b)   Second Item

A user to set custom indents depending on the list level, by accepting options of `customTextIndent` and `customItemIndent`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant