MacDownApp / MacDownApp/macdown

code block rendering bug for square bracket

Open
#1,332 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Code block with triple backticks is rendering bad:

```ts
interface MyObject {
[key: string]: string;
}
```

Screenshot 2024-01-07 at 08 07 02

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Reproduce the issue in MacDown using the TypeScript interface inside a triple-backtick code block, then trace the Markdown rendering entry point. Done means square-bracket index signatures render as code without malformed output.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.