Skip to content

TOC not displayed when not in CLI #397

@ant1j

Description

@ant1j

I am using this library and need the CLI in my generated HTML files.

It seems the TOC is only generated if it is used under the CLI mode:

# Prepend toc html to output
if self.cli:
text = '{}\n{}'.format(self._toc_html, text)

Disable the check seems to work fine.

Any reason why this condition is set?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureFeature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions