Skip to content

How can I remove linenos from the copied text? #144

@zhyantao

Description

@zhyantao

Describe the problem

I am using is sphinx_book_theme.

When I try to use copy button to copy the text, however, the linenos also included.

I just want to use linenos to view the line numbers, and I don’t want them to be copied to the clipboard.

Thank you so much~

Steps to reproduce

For example: website

And this is my conf.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions