Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom list options for label and indent #1184

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant