@metatransformer/xpub
v1.0.0
Published
Convert Markdown to X Articles-ready output with table-to-image conversion
Maintainers
Readme
xpub
Convert Markdown to X Articles-ready output. Tables are automatically converted to styled PNG images since X Articles doesn't support HTML tables.
Install
npm install -g @metatransformer/xpubOr run locally:
git clone https://github.com/Metatransformer/xpub.git
cd xpub
npm install
npm run build
npm linkUsage
# Open preview in browser (Cmd+A, Cmd+C to copy)
xpub article.md
# Copy rich text directly to clipboard (macOS)
xpub article.md --clipboard
# Output raw HTML
xpub article.md --html
# Save table images to specific directory
xpub article.md --images-dir ./out
# Add a cover image
xpub article.md --cover hero.jpgWhat it does
- Parses your Markdown file
- Converts tables to styled PNG images (dark theme)
- Applies syntax highlighting to code blocks
- Generates a preview page you can open in your browser
- Select all → Copy → Paste into X's Article editor
Why?
X Articles supports rich text but not HTML tables. This tool renders tables as images so your data-heavy articles look perfect on X.
License
MIT © Metatransformer LLC
