Skip to content

Add exclusions via front-matter or in code-blocks #7

@djw4

Description

@djw4

Is it/would it be possible to exclude generation of tree view on some pages - perhaps via front-matter? Alternatively (perhaps easier) can it skip generation of tags within code blocks?

It works great on most of my pages, but I have a collection of some scripts in my docs, and it's interpreting the bash comments as headers, so it generates the following:

* !/bin/bash
* lookup name servers at the registrar
* - - - - - - - - - - - - - # Check for input
* - - - - - - - - - - - - - if [ -z "$1" ]
* - - - - - - - - - - - - - # Generate input
* - - - - - - - - - - - - - if [ -f "/var/cpanel/cpanel.config" ]
* - - - - - - - - - - - - - # Start operations
* - - - - - - - - - - - - - for i in $domains; do

My comments look like the following:

# lookup name servers at the registrar
..
# - - - - - - - - - - - - - # Start operations
..
etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions