Skip to content

allow toc_levels option to be of type Range - #210

Closed
jkraemer wants to merge 1 commit into
gettalong:masterfrom
jkraemer:toc_levels_range
Closed

allow toc_levels option to be of type Range#210
jkraemer wants to merge 1 commit into
gettalong:masterfrom
jkraemer:toc_levels_range

Conversation

@jkraemer

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

updated!

@gettalong

Copy link
Copy Markdown
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