markup: Allow installed arbitrary Asciidoc extension via path validation.
This commit is contained in:
gzagatti
2021-01-11 16:46:31 +08:00
committed by Bjørn Erik Pedersen
parent c8f45d1d86
commit 01dd7c16af
4 changed files with 44 additions and 22 deletions

View File

@@ -37,18 +37,6 @@ var (
FailureLevel: "fatal",
}
AllowedExtensions = map[string]bool{
"asciidoctor-html5s": true,
"asciidoctor-bibtex": true,
"asciidoctor-diagram": true,
"asciidoctor-interdoc-reftext": true,
"asciidoctor-katex": true,
"asciidoctor-latex": true,
"asciidoctor-mathematical": true,
"asciidoctor-question": true,
"asciidoctor-rouge": true,
}
AllowedSafeMode = map[string]bool{
"unsafe": true,
"safe": true,