resolves #234 Capture all contents when turning a literal block into a CLI prompt with substitutions
This merge request slightly adjusts the 06-copy-to-clipboard.js
code so that when it detects a CLI prompt in a literal block, it handles cases where the literal block also has substitutions (such as +quotes
) enabled. This is meant to resolve #234.
Using the following sample code:
.CLI prompt in a literal block
....
$ echo "Voila!"
$ echo "and again!"
....
.CLI prompt in a literal block with substitutions
[subs="+quotes"]
....
$ echo "Voila!"
$ *echo "and now in bold!"*
....