diff --git a/gameserver/templatetags/bleach_allowlist.py b/gameserver/templatetags/bleach_allowlist.py deleted file mode 100644 index bdecab9..0000000 --- a/gameserver/templatetags/bleach_allowlist.py +++ /dev/null @@ -1,1149 +0,0 @@ -# Based on https://github.com/DMOJ/online-judge/blob/master/judge/jinja2/markdown/bleach_whitelist.py , which is, in turn, based on https://github.com/yourcelf/bleach-whitelist/blob/master/bleach_whitelist/bleach_whitelist.py - -standard_styles = [ - # Taken from https://developer.mozilla.org/en-US/docs/Web/CSS/Reference - # This includes pseudo-classes, pseudo-elements, @-rules, units, and - # selectors in addition to properties, but it doesn't matter for our - # purposes -- we don't need to filter styles.. - ":active", - "::after (:after)", - "align-content", - "align-items", - "align-self", - "all", - "", - "animation", - "animation-delay", - "animation-direction", - "animation-duration", - "animation-fill-mode", - "animation-iteration-count", - "animation-name", - "animation-play-state", - "animation-timing-function", - "@annotation", - "annotation()", - "attr()", - "::backdrop", - "backface-visibility", - "background", - "background-attachment", - "background-blend-mode", - "background-clip", - "background-color", - "background-image", - "background-origin", - "background-position", - "background-repeat", - "background-size", - "", - "::before (:before)", - "", - "blur()", - "border", - "border-bottom", - "border-bottom-color", - "border-bottom-left-radius", - "border-bottom-right-radius", - "border-bottom-style", - "border-bottom-width", - "border-collapse", - "border-color", - "border-image", - "border-image-outset", - "border-image-repeat", - "border-image-slice", - "border-image-source", - "border-image-width", - "border-left", - "border-left-color", - "border-left-style", - "border-left-width", - "border-radius", - "border-right", - "border-right-color", - "border-right-style", - "border-right-width", - "border-spacing", - "border-style", - "border-top", - "border-top-color", - "border-top-left-radius", - "border-top-right-radius", - "border-top-style", - "border-top-width", - "border-width", - "bottom", - "box-decoration-break", - "box-shadow", - "box-sizing", - "break-after", - "break-before", - "break-inside", - "brightness()", - "calc()", - "caption-side", - "ch", - "@character-variant", - "character-variant()", - "@charset", - ":checked", - "circle()", - "clear", - "clip", - "clip-path", - "cm", - "color", - "", - "columns", - "column-count", - "column-fill", - "column-gap", - "column-rule", - "column-rule-color", - "column-rule-style", - "column-rule-width", - "column-span", - "column-width", - "content", - "contrast()", - "", - "counter-increment", - "counter-reset", - "@counter-style", - "cubic-bezier()", - "cursor", - "", - ":default", - "deg", - ":dir()", - "direction", - ":disabled", - "display", - "@document", - "dpcm", - "dpi", - "dppx", - "drop-shadow()", - "element()", - "ellipse()", - "em", - ":empty", - "empty-cells", - ":enabled", - "ex", - "filter", - ":first", - ":first-child", - "::first-letter", - "::first-line", - ":first-of-type", - "flex", - "flex-basis", - "flex-direction", - "flex-flow", - "flex-grow", - "flex-shrink", - "flex-wrap", - "float", - ":focus", - "font", - "@font-face", - "font-family", - "font-feature-settings", - "@font-feature-values", - "font-kerning", - "font-language-override", - "font-size", - "font-size-adjust", - "font-stretch", - "font-style", - "font-synthesis", - "font-variant", - "font-variant-alternates", - "font-variant-caps", - "font-variant-east-asian", - "font-variant-ligatures", - "font-variant-numeric", - "font-variant-position", - "font-weight", - "", - ":fullscreen", - "grad", - "", - "grayscale()", - "grid", - "grid-area", - "grid-auto-columns", - "grid-auto-flow", - "grid-auto-position", - "grid-auto-rows", - "grid-column", - "grid-column-start", - "grid-column-end", - "grid-row", - "grid-row-start", - "grid-row-end", - "grid-template", - "grid-template-areas", - "grid-template-rows", - "grid-template-columns", - "height", - ":hover", - "hsl()", - "hsla()", - "hue-rotate()", - "hyphens", - "hz", - "", - "image()", - "image-rendering", - "image-resolution", - "image-orientation", - "ime-mode", - "@import", - "in", - ":indeterminate", - "inherit", - "initial", - ":in-range", - "inset()", - "", - ":invalid", - "invert()", - "isolation", - "justify-content", - "@keyframes", - "khz", - ":lang()", - ":last-child", - ":last-of-type", - "left", - ":left", - "", - "letter-spacing", - "linear-gadient()", - "line-break", - "line-height", - ":link", - "list-style", - "list-style-image", - "list-style-position", - "list-style-type", - "margin", - "margin-bottom", - "margin-left", - "margin-right", - "margin-top", - "marks", - "mask", - "mask-type", - "matrix()", - "matrix3d()", - "max-height", - "max-width", - "@media", - "min-height", - "minmax()", - "min-width", - "mix-blend-mode", - "mm", - "ms", - "@namespace", - ":not()", - ":nth-child()", - ":nth-last-child()", - ":nth-last-of-type()", - ":nth-of-type()", - "", - "object-fit", - "object-position", - ":only-child", - ":only-of-type", - "opacity", - "opacity()", - ":optional", - "order", - "@ornaments", - "ornaments()", - "orphans", - "outline", - "outline-color", - "outline-offset", - "outline-style", - "outline-width", - ":out-of-range", - "overflow", - "overflow-wrap", - "overflow-x", - "overflow-y", - "padding", - "padding-bottom", - "padding-left", - "padding-right", - "padding-top", - "@page", - "page-break-after", - "page-break-before", - "page-break-inside", - "pc", - "", - "perspective", - "perspective()", - "perspective-origin", - "pointer-events", - "polygon()", - "position", - "", - "pt", - "px", - "quotes", - "rad", - "radial-gradient()", - "", - ":read-only", - ":read-write", - "rect()", - "rem", - "repeat()", - "::repeat-index", - "::repeat-item", - "repeating-linear-gradient()", - "repeating-radial-gradient()", - ":required", - "resize", - "", - "rgb()", - "rgba()", - "right", - ":right", - ":root", - "rotate()", - "rotatex()", - "rotatey()", - "rotatez()", - "rotate3d()", - "ruby-align", - "ruby-merge", - "ruby-position", - "s", - "saturate()", - "scale()", - "scalex()", - "scaley()", - "scalez()", - "scale3d()", - ":scope", - "scroll-behavior", - "::selection", - "sepia()", - "", - "shape-image-threshold", - "shape-margin", - "shape-outside", - "skew()", - "skewx()", - "skewy()", - "steps()", - "", - "@styleset", - "styleset()", - "@stylistic", - "stylistic()", - "@supports", - "@swash", - "swash()", - "symbol()", - "table-layout", - "tab-size", - ":target", - "text-align", - "text-align-last", - "text-combine-upright", - "text-decoration", - "text-decoration-color", - "text-decoration-line", - "text-decoration-style", - "text-indent", - "text-orientation", - "text-overflow", - "text-rendering", - "text-shadow", - "text-transform", - "text-underline-position", - "