Greetings,
I have just installed this Hugo partial, MANY thanks for writing it.
I have found two bugs so far, one easily solvable, the other I don't know.
The first is that the regex that counts the subheadings should change from
'<h2>' to '<h2 ' (or even '</h2>'?)
Otherwise it will NOT recognize subheadings with attributes, as it happens with my current theme, which generates headings like:
<h2 id="Conclusions">Conclusions</h2>
The other problem is much harder for me to investigate and fix. The Flesch reading ease formula seems really broken. It returns -17, or 17, but if I copy the same text from the browser to a text editor, save it as testing.txt, and feed THAT file to the Flesch tool at http://flesh.sourceforge.net/ , it returns 51.
Of course, even that tool may be buggy, but... 17? No way. The sample text is not THAT hard to read, for sure. 51 is way, way more realistic.
I can provide the raw markdown file that generates that result, but I would rather not leave it here on github. To have it and test, pls email [email protected], thanks.