Improve table render · Issue #4085 · markedjs/marked · GitHub
Skip to content

Improve table render #4085

Description

@alphmeric

Marked version:

v18.0.11 (local copy of https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js

Describe the bug

The table doesn't render as expected.

marked.parse(payload)

To Reproduce
Steps to reproduce the behavior:

  1. Marked Demo
  2. CommonMark Demo
### 3. The Highest Level of Formality (Addressing Status)

 formal greeting is not a phrase the way you *address* the person. When speaking to someone in authority or significantly older, you should always use their title.

| English Equivalent | Chinese Pronunciation | Usage |
| :--- | :--- | :--- | :--- |
| **Mr./Sir** | **?? (Xiansheng)** | Shyan-shung | For men. | **Ms./Mrs.** | **?? (Nushì)** | Nü-shur | For women. |
| **Director/Manager** | **?? (Jingli)** | Jing-lee | Use their title followed by the name. |
| **Professor** | **?? (Jiàoshòu)** | Jyao-shoh | For academic superiors. |

**Example:** Instead of saying "Hello," you would say:

> **"???,??!"**
> (Li Ji, hao!)
> *Translation: Manager Li, hello!*

***

### Summary Table

| Level of Formality | Phraseinyin | When to Use |
| :--- | :------ | |
| **Standard/Neutral** | ?? | Ni hao | Friends, peers, casual encounters. |
| **Respectful/Polite** | **??** | **Nín hao** | Elders, people in service roles, initial encounters. |
| **Professional/Formal** | **??????** | Hen gaoxìng rènshi nín | First-time meetings, business settings. |
| **Highly | **[Title] + ??** | [Title] + Nín hao | High-level meetings, addressing superiors/elders. |

Expected behavior

Display table correctly. The output provided was generated by OpenAI-compatible server so almost all AIs use this syntax.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions