Skip to content

Fix code block rendering with square brackets #37

@schuyler

Description

@schuyler

Problem

Code blocks containing square brackets render incorrectly.

Example

TypeScript interface with index signature syntax:

interface MyType {
  [key: string]: any;
}

The [key: string] syntax displays improperly in MacDown.

Impact

  • Affects TypeScript, JavaScript, and other programming languages
  • Index signatures are common in TypeScript code
  • Makes code documentation difficult

Source

Based on issue #1332 from MacDownApp/macdown
MacDownApp/macdown#1332

Priority

HIGH - Affects code rendering for common programming patterns

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions