.bd-content .article-math-display {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
    text-align: center;
    white-space: normal;
}

.bd-content .article-math-display .katex-display {
    margin: 0;
    white-space: nowrap;
}

.bd-content .article-math-error {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
