mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-26 14:11:56 +00:00
Docs: fix the no-preview tag
That tag is added in a bunch of places, but was not working (the preview was still shown)
This commit is contained in:
parent
6a879669d7
commit
fea2f8df37
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@
|
|||
async function run() {
|
||||
await slint.default();
|
||||
let selector = ["code.language-slint", ".rustdoc pre.language-slint", "div.highlight-slint"]
|
||||
.map((sel) => `${sel}:not([class*=slint\\,ignore]):not([class*=slint\\,no_run])`).join(",");
|
||||
.map((sel) => `${sel}:not([class*=slint\\,ignore]):not([class*=slint\\,no-preview])`).join(",");
|
||||
var elements = document.querySelectorAll(selector);
|
||||
for (var i = 0; i < elements.length; ++i) {
|
||||
let source = elements[i].innerText;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue