CATcher-org / CATcher-org/CATcher

Preview does not show Syntax Highlighting

Open
#1,015 4 comments 0 reactions 0 assignees View on GitHub
category.Bug category.Enhancement p.Low s.ToDiscuss
Dominant language
TypeScript
Stars
92
Forks
85
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
The preview does not show syntax highlighting. This is probably a minor bug at best.

**To Reproduce**
Steps to reproduce the behavior:

1. Start writing a new issue
2. Write the following (do not copy, there are zero width spaces between the backticks):
```
Here is a bug.
`​`​`java
public static void main(String[] testCode) {
assert(false);
}
`​`​`
```
3. Click "Preview"
4. No syntax highlighting.

**Expected behavior**
Syntax highlighting for Java code.

**Screenshots**
![image](https://user-images.githubusercontent.com/62918570/196048477-a62403ea-e142-40bb-a059-3e7886f26f2e.png)

**Desktop (please complete the following information):**

- OS: Windows 10
- Browser: Chrome
- Browser Version: Version 106.0.5249.103 (Official Build) (64-bit)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in a new issue by entering the provided Java fenced code block and selecting Preview. Trace the TypeScript issue-editor preview and its Markdown or syntax-highlighting entry point; no file or test is named in the report. Done means Java code blocks visibly receive syntax highlighting in Preview without breaking other preview behavior.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.