Compare commits

..
Author SHA1 Message Date
dependabot[bot] d024dc53b4 build(deps): bump markdown-it from 14.3.0 to 14.3.3 in /website
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 14.3.0 to 14.3.3.
- [Changelog](https://github.com/markdown-it/markdown-it/blob/14.3.3/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/14.3.0...14.3.3)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-version: 14.3.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-26 01:00:26 +00:00
6 changed files with 14 additions and 51 deletions

No files matched your search

-3
View File
@@ -6,9 +6,6 @@ on:
- main
workflow_dispatch:
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
@@ -3,10 +3,6 @@ name: TEST publish-version-xml (local only)
on:
workflow_dispatch:
permissions:
contents: read
issues: read
jobs:
publish-version-xml:
name: Publish Version Info XML via WebDAV
+3 -18
View File
@@ -32,26 +32,11 @@ const MANUAL_PAGE_ORDER = {
]
};
// Removes HTML tags until none are left, so that nested input such as
// "<<b>script>" cannot reassemble a tag after a single pass.
function stripHtmlTags(value) {
let previous;
let current = value;
do {
previous = current;
current = current.replace(/<[^>]+>/g, "");
} while (current !== previous);
return current;
}
function markdownToPlainText(value) {
const withoutLinks = (value || "")
return (value || "")
.replace(/!\[([^\]]*)\]\([^)]+\)/g, "$1")
.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1");
return stripHtmlTags(withoutLinks)
.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1")
.replace(/<[^>]+>/g, "")
.replace(/[*_~`]/g, "")
.replace(/\s+/g, " ")
.trim();
+7 -7
View File
@@ -7,15 +7,15 @@
"": {
"name": "kst4contest-website",
"version": "0.1.0",
"engines": {
"node": ">=18.19.1"
},
"dependencies": {
"markdown-it": "^14.3.0",
"markdown-it": "^14.3.3",
"markdown-it-anchor": "^9.2.0"
},
"devDependencies": {
"@11ty/eleventy": "^3.0.0"
},
"engines": {
"node": ">=18.19.1"
}
},
"node_modules/@11ty/dependency-tree": {
@@ -1136,9 +1136,9 @@
}
},
"node_modules/markdown-it": {
"version": "14.3.0",
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.0.tgz",
"integrity": "sha512-RCEsPjR+sr0x+AuYp601tKTkgFG4YEPLCzHST3cQ/fhlJkqAkz1L2/Qbp1j9qw5SBwQHFBoW8+hoN5xssOF0Tw==",
"version": "14.3.3",
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.3.tgz",
"integrity": "sha512-L//tDAkjTjJCU6pBUSBTgs3Kg4InVaZuUZog/b6V12UKhcDQ7S78877ibbCanRExwPuYP1CZD7Gd2dxSy1GXRg==",
"funding": [
{
"type": "github",
+1 -1
View File
@@ -15,7 +15,7 @@
"@11ty/eleventy": "^3.0.0"
},
"dependencies": {
"markdown-it": "^14.3.0",
"markdown-it": "^14.3.3",
"markdown-it-anchor": "^9.2.0"
}
}
+3 -18
View File
@@ -28,29 +28,14 @@ function extractTag(xml, tagName) {
return match ? match[1].trim() : null;
}
// Applies the removal until nothing changes, so that nested input such as
// "<!-<!---->-->" cannot leave a fresh comment behind after a single pass.
function removeUntilStable(value, pattern) {
let previous;
let current = value;
do {
previous = current;
current = current.replace(pattern, "");
} while (current !== previous);
return current;
}
function assertWellFormedStructure(xml) {
if (/&(?!amp;|lt;|gt;|quot;|apos;|#\d+;|#x[0-9a-f]+;)/i.test(xml)) {
fail("the XML contains an unescaped ampersand");
}
const withoutCommentsAndDeclaration = removeUntilStable(
xml,
/<!--[\s\S]*?-->|<\?[\s\S]*?\?>/g
);
const withoutCommentsAndDeclaration = xml
.replace(/<!--[\s\S]*?-->/g, "")
.replace(/<\?[\s\S]*?\?>/g, "");
const tagPattern =
/<\/?([A-Za-z_][\w:.-]*)(?:\s[^<>]*?)?\s*\/?>/g;