Open trusktr opened 3 years ago
@trusktr thank you for the issue and the example. Will you also include the source README.md
to help determine where the bug is occurring?
It happens only when the file contains <!-- toc -->
. Sample file : README.md.txt.
Without <!-- toc -->
:
mycomputer$ markdown-toc --no-firsth1 README.md
- [About](#about)
- [Requirements & installation](#requirements--installation)
* [Python package installation](#python-package-installation)
* [Installation from source](#installation-from-source)
* [Docker usage](#docker-usage)
...
With <!-- toc -->
:
mycomputer$ markdown-toc --no-firsth1 README.md
undefined [Requirements & installation](#requirements--installation)
- [Python package installation](#python-package-installation)
- [Installation from source](#installation-from-source)
- [Docker usage](#docker-usage)
...
Also it's probably a duplicate of #42 and #131
Example without the option:
Example with the option: