Skip to content

Provide a mechanism for ignoring leading characters in a code block #864

Open
@sdball

Description

@sdball

This is coming from rust-lang/book#1756

It'd be great for mdbook to provide some kind of mechanism to declare leading characters that should be ignored by the "copy to clipboard" button. Specifically in the Rust Book's case: to omit the leading $ characters from being copied to the clipboard. That will allow readers to paste commands into their terminal without having to manually edit the command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions