Skip to content

Automatically strip leading $ characters when copying content of a source block that is using the console language #252

@wilkinsona

Description

@wilkinsona

By convention, much of the Spring portfolio's documentation uses a $ prefix for source blocks containing shell commands. This prefix is also mentioned in Asciidoctor's own documentation:

Typically, the syntax highlighter will parse the prompt (e.g., $) at the start of each line, then handle the remaining text using the shell language.

When copying the content of a console source block, it would be great if any leading $ characters could be removed automatically. This would allow users to paste the command(s) into their terminal and run them without alteration.

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

    Issue actions