Skip to content

[Feature]: Markdown rendering issues: Mermaid / LaTeX / preformatted ASCII blocks are shown as raw or broken text #50

@vveii14

Description

@vveii14

Summary

Some generated outputs are not rendered correctly in the UI. Instead of being displayed as diagrams, math, or properly formatted preformatted blocks, they appear as raw text or broken layouts.

Problem to solve

This affects at least these cases:

  1. Pipeline / diagram-like content

    • Mermaid-like or boxed pipeline content is partially rendered as broken horizontal lines / raw text.
    • Fence markers or language hints such as text seem to leak into the rendered output.
    • Layout is fragmented across multiple blocks.
  2. LaTeX math content

    • Block math is shown literally, e.g. \[ ... \], \lambda, \mathrm, etc.
    • Equations are not being rendered into formatted math.
  3. ASCII / monospace comparison blocks

    • Alignment is broken.
    • Vertical bars and separators wrap incorrectly.
    • The result becomes hard to read.

Examples from screenshots

1) "DCA 三阶段 Pipeline"

Expected:

  • A clean structured diagram / preformatted block

Actual:

  • Broken lines appear above the main block
  • Raw text / fence-related content leaks into the UI
  • Some sections are split into separate dark blocks unexpectedly

2) "单个子问题长什么样"

Expected:

  • Properly rendered math formula

Actual:

  • Raw LaTeX source is displayed directly, including \[...\] and escaped commands

3) "速度对比结果"

Expected:

  • A readable structured comparison block / table / diagram

Attachments

I attached screenshots showing:

  • broken pipeline rendering
  • raw LaTeX rendering
  • broken speed comparison block
Image Image Image

Proposed solution

Alternatives considered

No response

Impact

Evidence/examples

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions