Add support for CVEs

This commit is contained in:
2026-02-04 09:47:56 +01:00
parent 1022728515
commit a74aa0fb8a
3 changed files with 17 additions and 1 deletions

14
addons/cve.typ Normal file
View File

@@ -0,0 +1,14 @@
#let isUsed = state("cveIsUsed", false)
#let reference(name) = {
name = upper(name)
if not name.starts-with("CVE-") {
name = "CVE-" + name
}
text([
#name#footnote("https://www.cve.org/CVERecord?id=" + name)
])
context(isUsed.update(true))
}