| 1 | // Source: https://github.com/srl-labs/learn-srlinux/pull/133/files
|
| 2 | // this script is used to remove extra leading space when annotating shell code blocks ending with `\`
|
| 3 | // character. See https://github.com/squidfunk/mkdocs-material/issues/3846 for more info.
|
| 4 | document$.subscribe(() => {
|
| 5 | const tags = document.querySelectorAll("code .se");
|
| 6 | tags.forEach((tag) => {
|
| 7 | if (tag.innerText.startsWith("\\")) {
|
| 8 | tag.innerText = "\\";
|
| 9 | }
|
| 10 | });
|
| 11 | });
|
| 12 |
|