/* static/css/custom-code.css */
.prose pre,
.prose pre code,
pre.hljs,
.highlight pre {
  overflow-x: auto !important;     /* 强制横向溢出滚动 */
  white-space: pre !important;      /* 保持不换行 */
  word-break: normal !important;    /* 不强制断词 */
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 1rem !important;         /* 美观，可调 */
}

/* 如果滚动条太丑或不显眼，加样式（可选） */
.prose pre::-webkit-scrollbar {
  height: 8px;
}
.prose pre::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.prose pre::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* 极端情况：如果 prose 父级限制了，试试这个 */
.prose {
  overflow-x: visible !important;   /* 让 prose 不隐藏溢出 */
}