Markdown images in X Articles, including Obsidian notes

A Markdown file only stores image paths such as assets/chart.png. When you paste it into X, those paths mean nothing, and uploading each image by hand in the right spot is slow. md2xarticle matches the paths to your files and places every image where it appears in the text.

Steps

  1. Import or paste your Markdown in md2xarticle.
  2. Open Images & diagrams and choose the folder that holds your images, or a parent folder. Browsers cannot read local paths without your permission, so this step is needed once per article. Only images the article references are attached.
  3. Fix anything the preview marks as missing with the image's Replace control. You can use a local file or a public image URL.
  4. With the Chrome companion, choose Create X draft. Images are uploaded to your signed-in X account and placed in order. Without the companion, copy the body and add the images in X where the image markers show.

Obsidian notes

Obsidian image paths are usually relative to the vault or to the note. Select the vault folder, or the attachments folder you use, and md2xarticle matches the paths inside it.

md2xarticle reads both standard Markdown image links like ![Chart](attachments/chart.png) and Obsidian image embeds like ![[chart.png]] (matching by file name in your chosen folder). Note wikilinks such as [[Other Note]] reach X as literal text and are flagged with line numbers (you can turn that warning off under How to use).

Supported images

Limits

Related guides

md2xarticle 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.