mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-12 00:38:51 +00:00
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:
parent
c1cd9dabf3
commit
65f9c986f2
|
@ -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.
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue