The PR I submitted adds a new css class of copypaste-warning which adds the red border around code blocks that have that role assigned.
Since the copypaste functionality breaks the existing workshop red-border copypaste role, it doesn't matter that this is a new role. Someone would need to update their lab guide to "fix" their copypaste blocks to be warnings anyway.
Note that use of this requires asciidoctor syntax like the following:
[source,none,role="copypaste copypaste-warning"]
The above syntax, when processed by workshopper, will result in the css class on the div being ...copypaste copypaste-warning which causes both classes (copypaste and copypaste-warning) to be applied.
In reference to #62
The PR I submitted adds a new css class of
copypaste-warning
which adds the red border around code blocks that have that role assigned.Since the copypaste functionality breaks the existing workshop red-border copypaste role, it doesn't matter that this is a new role. Someone would need to update their lab guide to "fix" their copypaste blocks to be warnings anyway.
Note that use of this requires asciidoctor syntax like the following:
[source,none,role="copypaste copypaste-warning"]
The above syntax, when processed by workshopper, will result in the css class on the div being
...copypaste copypaste-warning
which causes both classes (copypaste
andcopypaste-warning
) to be applied.