mediawiki.less: don't remove font-weight from .cm-mw-strong tokens

Presumably it was always the intention that tokens with the styles
.cm-mw-page-name AND .cm-mw-em should be both bold and italic in links,
without having the CSS rules override each other. As an example:

  '''''[[Bold and italic title]]'''''

Added a note in the README that this will be a new user-facing feature

Change-Id: Iac41e31b7a9cf8683cd5c982c496ff83a092acfb
This commit is contained in:
MusikAnimal 2023-12-13 02:11:24 -05:00
parent c1cd9dabf3
commit 65f9c986f2
2 changed files with 11 additions and 4 deletions

View file

@ -38,13 +38,15 @@ eventually be moved over to `tests/qunit` and rewritten for CodeMirror 6.
## CodeMirror 6 change log
### Upstream changes
This list changes that come by default with the CodeMirror 6 upgrade.
This is a list of changes that either come by default with the CodeMirror 6 upgrade,
or changes of our that we deem as reasonable improvements.
Some may be removed pending user feedback:
### Upstream changes
* Bracket matching now highlights unmatched brackets in red
### New MediaWiki mode features
* Closing HTML tags that highlighted as an error now also highlight the closing '>'
* Allow link titles to be both emboldened and italicized.

View file

@ -112,7 +112,12 @@ pre.CodeMirror-line-like.cm-mw-tag-nowiki,
.cm-mw-link-bracket,
.cm-mw-link-delimiter,
.cm-mw-extlink,
.cm-mw-free-extlink { color: @link-color; font-weight: normal; }
.cm-mw-free-extlink {
color: @link-color;
&:not( .cm-mw-strong ) {
font-weight: normal;
}
}
.cm-mw-extlink-protocol,
.cm-mw-free-extlink-protocol,
.cm-mw-extlink-bracket { color: @link-color; font-weight: bold; }