DEV Community

James Ray
James Ray

Posted on

[Feature request] Filter doctoc by number of lines in a file

It would be great if there are any Javascript devs who want to fix issues in this repo such as this one that I just filed! https://github.com/thlorenz/doctoc/issues/152.

Filter doctoc, by default, to not add a ToC to files that are below 30 lines (20 lines would fit on a page on most screens); scrolling 10 lines is just about as easy as clicking on a link, then add a flag to change this number of lines.

Top comments (2)

Collapse
 
jess profile image
Jess Lee

Just wanted to share that you can embed github issues with this syntax:

{% github https://github.com/thlorenz/doctoc/issues/152 %}

Also, feel free to drop this project in our open source thread:

Collapse
 
jamesray1 profile image
James Ray

Thanks, I posted there!