from bleach.sanitizer import ALLOWED_ATTRIBUTES as BLEACH_ATTRIBUTES
from bleach.sanitizer import ALLOWED_TAGS as BLEACH_TAGS


WHITELISTED_TAGS = (
    *BLEACH_TAGS,
    "h1",
    "h2",
    "h3",
    "article",
    "p",
    "img",
    "figure",
    "small",
    "picture",
    "b",
    "video",
    "source",
    "div",
    "body",
)

WHITELISTED_ATTRIBUTES = {
    **BLEACH_ATTRIBUTES,
    "a": ["href", "rel"],
    "img": ["alt", "src", "loading"],
    "video": ["controls", "muted"],
    "source": ["srcset", "src", "media", "type"],
}
