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!

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.

Discussion (2)

jess profile image
Jess Lee (she/her)

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

{% github %}

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

jamesray1 profile image
James Ray Author

Thanks, I posted there!