podman.io
podman.io copied to clipboard
code snippets have copy link, but include leading $ so fail
On the getting started page there's a couple of code snippets that are meant to by copied, like this one:
However, when you copy it, you get this snippet in your clippboard:
$ podman run -dt -p 8080:80/tcp docker.io/library/httpd
And when I run it, I unsurprisingly get:
$ $ podman run -dt -p 8080:80/tcp docker.io/library/httpd
zsh: command not found: $
This is because there's a leading $
at the front of line. one way to solve this is with the css approach. Here's some faux code:
<style>
.no-select {
user-select: none;
}
</style>
<div class="snippet">
<span class=""no-select">$ </span>podman run -dt -p 8080:80/tcp docker.io/library/httpd
</div>