Skip to content

allow toc_levels option to be of type Range #210

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

Closed
wants to merge 1 commit into from

Conversation

jkraemer
Copy link
Contributor

This is more or less cosmetics but I just stumbled across this - the docs are talking of 'range syntax' but passing an actual Range for the :toc_levels option didn't work.

@gettalong gettalong self-assigned this Jan 21, 2015
@gettalong
Copy link
Owner

Thanks, this is a good idea.

However, the values of the array would need to be converted to integers in case the range isn't an integer range (see the array case). Please update your pull request in this regard.

@jkraemer
Copy link
Contributor Author

updated!

@gettalong
Copy link
Owner

Thank you - I have cherry-picked your commit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants