StackExchange / StackExchange/Stacks-Editor
bug(markdown) language-all comments not working in Chrome
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 437
- Forks
- 61
- Avg merge
- 16h 2m
- Merged PRs (30d)
- 8
Description
Describe the bug
The editor seems to support comments like but it's just not taking effect in Chrome (a users has shown it working in FF).
To Reproduce
- MD mode, type in
<!-- language-all: bash -->
~~~
var "hello"
~~~
Switch to RT. Observe that the codeblock stays as "plaintext".
Expected behavior
All codeblocks should be set to the language set in that comment
Desktop (please complete the following information):
Windows 11 Chrome 103
Additional context
https://meta.stackexchange.com/a/380319/51
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are mentioned. Reproduce the issue in Chrome with the provided Markdown comment and fenced block, then trace the editor's Markdown-to-rich-text handling for language-all comments. Done means the block switches from plaintext to bash in Chrome as it does in Firefox.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100