diff_selection
Makes text selection in diff code-blocks fool-proof.
Designed to assist with tutorial material for diff code-blocks:
Makes
-lines non-selectable.Makes
+symbol non-selectable.
Note
Extension is automatically loaded when added to extensions, no directives or configurations required.
Example
.. code-block:: diff
foo
+ bar
- baz
pub
foo
+ bar
- baz
pub