How to hide markers shown for Unicode directionality formatting characters
In response to the Unicode directionality formatting characters vulnerability the Scroll Viewport team took the stance of 'better safe than sorry' and chose to expose directionality formatting characters that are encountered on a page rendered through Scroll Viewport. Through this approach the functionality of the pages stays untouched, but directionality formatting characters should be clearly visible in the content and describe the possible danger of their usage. This mechanism was implemented in version 2.19.4 of Scroll Viewport.
The Scroll Viewport app cannot discern malicious and legitimate use of the directionality formatting characters and thus users might want to hide the warnings on their Scroll Viewport site in all or specific contexts.
To hide the warnings you can use CSS in your theme or custom CSS applied to the Help Center theme.
To unconditionally hide the markers you can use the following CSS:
.sv-bidi-marker:before {
display: none;
}
To only hide the markers when in code blocks or inline code you can use the following CSS:
code .sv-bidi-marker:before {
display: inline;
}
.sv-bidi-marker:before {
display: none;
}