In ruwiki, the check "Проверить пунктуацию" for fixing punctuation problems with - and em dash:
```
"--": "—",
"\\s-\\s": " — ",
"\\s-(\\d+)": " −$1",
"\\s-([а-яё]+)": " —$1",
"([^\\d\\s]+)(—|\\s—|—\\s)([^\\d\\s]+)": "$1 — $3"
```
behaves weirdly when there are templates around an em dash. For example, see [[ https://ru.wikipedia.org/w/index.php?title=%D0%9A%D1%80%D0%B0%D1%81%D0%BD%D0%BE%D0%B4%D0%B0%D1%80%D1%81%D0%BA%D0%B8%D0%B9_%D0%BA%D1%80%D0%B0%D0%B9&veaction=edit§ion=24 | a section ]] of article Краснодарский край:
{F85451473}
The edit check suggests something which looks like changing em dash to em dash (which already isn't very useful), but when I click it it just removes the templates... I have no idea why this happens and what I should fix so that it wouldn't.
A similar thing but for links instead of templates happens [[ https://ru.wikipedia.org/w/index.php?title=%D0%91%D1%83%D0%B7%D0%B0%D0%BD%D1%87%D0%B8%D1%87,_%D0%91%D0%BE%D1%80%D0%B8%D1%81&veaction=edit | here]].
A similar thing happens [[ https://ru.wikipedia.org/w/index.php?title=%D0%AD%D1%83%D0%BA%D0%B0%D1%80%D0%B8%D0%BE%D1%82%D1%8B&veaction=edit§ion=4| here ]] with numbers in templates.