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
- Import or paste your Markdown in md2xarticle.
- 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.
- Fix anything the preview marks as missing with the image's Replace control. You can use a local file or a public image URL.
- 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  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
- PNG, JPEG, WebP and SVG (rendered to PNG in the browser). Sources up to 40 MiB are accepted; images over 5 MiB are downscaled automatically.
- Up to 40 images and 20 MiB of prepared image data per draft. Mermaid diagrams and PNG tables count toward the total.
- Public web images work when the host allows browser downloads (CORS). Images behind a login, private hosts or redirects need a local replacement.
- If the same image is used more than once, it is uploaded once and every placement is kept.
Limits
- Images must sit in their own paragraph or in normal text. Images inside lists, headings, quotes, links or tables are blocked. Move them out first.
- GIF and video are not supported yet. Add them in X after creating the draft.
- ALT text stays in your Markdown source and is not set as the image description in X. For a cover image, add
cover: pathto the frontmatter or choose one under Images; companion 0.1.2 or later sets it on the draft.
Related guides
- Add a table to an X Article
- Add Mermaid diagrams to X Articles
- Markdown to X Article agent skill
- Full Markdown to X Articles guide
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.