Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wilkinsona opened this issue May 30, 2024 · 1 comment

Comments

@wilkinsona
Copy link

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.

@philwebb
Copy link
Contributor

philwebb commented May 30, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants