fix heading style conflict with CM5

CSS classes such as `.cm-mw-section-3` are assigned to the `<pre>` elements in CM5 while to the `<span>` elements in CM6. The heading styles for CM6 should not interfere with CM5, at least for now.

Bug: T355290
Change-Id: I47426a8319e67503014f847fba39891bdf42db5b
(cherry picked from commit e0af18f99d)
This commit is contained in:
bhsd 2024-01-18 23:27:40 +08:00 committed by Tim Starling
parent 75127a79e3
commit 34d28344a9

View file

@ -67,7 +67,11 @@ pre.CodeMirror-line.cm-mw-section-5,
pre.CodeMirror-line-like.cm-mw-section-5,
pre.CodeMirror-line.cm-mw-section-6,
pre.CodeMirror-line-like.cm-mw-section-6,
.cm-mw-section-3 ~ *, .cm-mw-section-4 ~ *, .cm-mw-section-5 ~ *, .cm-mw-section-6 ~ * {
/* TODO: remove overqualified `span` after CM6 upgrade */
span.cm-mw-section-3 ~ *,
span.cm-mw-section-4 ~ *,
span.cm-mw-section-5 ~ *,
span.cm-mw-section-6 ~ * {
font-weight: bold;
}