Article Studio

Add Mermaid diagrams to X Articles

X Articles cannot render Mermaid code, so a flowchart pasted as text shows up as a code block. Article Studio renders each Mermaid block to a PNG image in your browser and puts it back in the same place in the article. You do not need to take screenshots.

Steps

  1. In Article Studio, write a fenced code block with the language mermaid, or insert one from the editor toolbar. Imported Markdown files work the same way.
  2. The preview shows the rendered diagram. Check that labels are readable, including in the phone preview.
  3. With the Chrome companion, choose Create X draft. The diagram is uploaded as an image and placed where the code block was.
  4. Without the companion, download the diagrams from Images & diagrams → Download all (.zip) and add them in X where the image markers show.

Example

```mermaid
flowchart LR
  Draft[Write in Markdown] --> Preview[Preview]
  Preview --> X[Create X draft]
```

How the images are made

Limits

Related guides

Article Studio is an independent tool and is not affiliated with or endorsed by X Corp. X controls Articles access and final rendering; check each draft in X before publishing.