GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Edit Task
  • Edit Related Tasks...
  • Create Subtask
  • Edit Parent Tasks
  • Edit Subtasks
  • Merge Duplicates In
  • Close As Duplicate
  • Edit Commits
  • Edit Mocks
  • Mute Notifications
  • Protect as security issue
  • SyntaxHighlight
  • (Backlog)
  • Chinese-Sites

This view

  • Original page
  • New address

GeezerVison is showing phabricator.wikimedia.org — T353090 <syntaxhighlight inline> should escape LanguageConverter by default

Page MenuHomePhabricator
Log In
Create Task
Maniphest T353090

<syntaxhighlight inline> should escape LanguageConverter by default
Open, Needs TriagePublicBUG REPORT
Actions

  • Edit Task
  • Edit Related Tasks...
  • Create Subtask
  • Edit Parent Tasks
  • Edit Subtasks
  • Merge Duplicates In
  • Close As Duplicate
  • Edit Related Objects...
  • Edit Commits
  • Edit Mocks
  • Mute Notifications
  • Protect as security issue
Assigned To
None
Authored By
Diskdance
Dec 9 2023, 6:19 AM2023-12-09 06:19:33 (UTC+0)
Project Tags
  • SyntaxHighlight (Backlog)
  • Chinese-Sites (Extensions/Skins)
  • MediaWiki-Language-converter (Extensions/Skins)
Referenced Files
None
Subscribers
1F616EMO
Aklapper
Diskdance
KD_Hsueh
Stang

Description

Steps to replicate the issue (include links if applicable):

  • Write <syntaxhighlight lang="wikitext" inline>-{}-</syntaxhighlight> on Chinese Wikipedia

What happens?:

  • It shows an empty code block

What should have happened instead?:

  • It should show -{}-

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

The regular, non-inline version of <syntaxhighlight> does escape LanguageConverter. The inline version should also follow this, otherwise it would be impossible to highlight LanguageConverter syntaxes.

Related Objects

  • Mentions
Mentioned In
T34943: Auto-conversion between zh-hans & zh-hant in <syntaxhighlight> elements

Event Timeline

Diskdance created this task.Dec 9 2023, 6:19 AM2023-12-09 06:19:33 (UTC+0)
Restricted Application added subscribers: Stang, Aklapper. · View Herald TranscriptDec 9 2023, 6:19 AM2023-12-09 06:19:39 (UTC+0)
Diskdance added projects: SyntaxHighlight, Chinese-Sites, MediaWiki-Language-converter.Dec 9 2023, 6:20 AM2023-12-09 06:20:27 (UTC+0)
Diskdance moved this task from Backlog to Extensions/Skins on the MediaWiki-Language-converter board.
Winston_Sung moved this task from Backlog to Extensions/Skins on the Chinese-Sites board.Dec 10 2023, 3:00 AM2023-12-10 03:00:59 (UTC+0)
Winston_Sung mentioned this in T34943: Auto-conversion between zh-hans & zh-hant in <syntaxhighlight> elements.Dec 10 2023, 4:00 AM2023-12-10 04:00:57 (UTC+0)
1F616EMO subscribed.Jul 6 2025, 1:25 PM2025-07-06 13:25:35 (UTC+0)
Comment Actions

More information: Using <syntaxhighlight> won't cause the problem, but <syntaxhighlight inline> would.

KD_Hsueh subscribed.May 31 2026, 11:56 PM2026-05-31 23:56:06 (UTC+0)
Comment Actions

I found in the parser tests (L114) that inline syntaxhighlight outputs <code class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr">…</code>, which means LC won't automatically skip it the way it does for a plain <code>.
Block syntaxhighlight outputs <div class="mw-highlight ..."><pre>...</pre></div> so it'll be skipped by LC.

Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.