FIX: pretty text allow list (#10977)

Reword whitelist to allowlist in pretty-text.
This library is used by plugins so we need deprecation notice.
This commit is contained in:
Krzysztof Kotlarek
2020-10-28 13:22:06 +11:00
committed by GitHub
parent 632942e697
commit dbec3792b7
21 changed files with 315 additions and 272 deletions

View File

@ -41,7 +41,7 @@ export function setup(helper) {
.concat(["auto", "nohighlight"]);
});
helper.whiteList({
helper.allowList({
custom(tag, name, value) {
if (tag === "code" && name === "class") {
const m = /^lang\-(.+)$/.exec(value);