mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
committed by
GitHub
parent
632942e697
commit
dbec3792b7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user