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

Please support commands in inline code blocks #330

Open
xaviergmail opened this issue Mar 15, 2024 · 1 comment
Open

Please support commands in inline code blocks #330

xaviergmail opened this issue Mar 15, 2024 · 1 comment

Comments

@xaviergmail
Copy link

xaviergmail commented Mar 15, 2024

I have a command that uses star globbing (example: /e2e non-parallel-tests/*.js parallel/role-*/*.js)
When writing this command outside an inline code block, the two matching stars turn it to italics as such:
/e2e non-parallel-tests/.js parallel/role-/*.js.

This then prevents us from being able to copy/paste commands from previous comments for reuse.

I'd like to suggest the addition of an option to allow us to pass commands not only like this:

/command [args...]

[Rest of comment...]

but like this as well:

`/command [args...]`

[Rest of comment...]
@peter-evans
Copy link
Owner

Hi @xaviergmail

I understand your issue, but I don't think allowing commands in code blocks to be executable is a good approach. Most users will intuitively understand that content inside code blocks is non-executable I think. Adding this could also potentially break some users workflows.

I'll have a think if there is some other workaround to your issue.

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