Files
wehub-resource-sync 4e0f4422d0
Check Markdown links / markdown-link-check (push) Waiting to run
Pytest / test (3.11) (push) Waiting to run
Pytest / test (3.12) (push) Waiting to run
build-docs / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:25:42 +08:00

12 lines
455 B
JavaScript

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