Skip to content

ability to specify @collapse #5

@leoj3n

Description

@leoj3n
Contributor

I like the collapsing functionality this plugin already has, but it cannot be invoked on specific lines, and without specifying @highlight. I would like to be able to collapse specific lines without doing any highlighting, like:

@collapse 0-1,30-32

Could a separate plugin be made that plays nice with bit-docs-html-highlight-line, or could bit-docs-html-highlight-line be extended to offer a @collapse tag?

A compromise might be to add another option next to only, something like exact that will show exactly only the highlighted lines, and indiscriminately collapse all other non-highlighted lines, because currently only will show the next and previous three lines surrounding a highlight.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @leoj3n

        Issue actions

          ability to specify @collapse · Issue #5 · bit-docs/bit-docs-html-highlight-line