Publishing Markdown to a LinkedIn Article from an Agent Skill
Post · https://dev.to/gde/publishing-markdown-to-a-linkedin-article-from-an-agent-skill-1hbj
LinkedIn's article editor saves two heading levels and no inline code, and its page cannot parse HTML. A step by step walk-through of the LinkedIn article destination in publishing-kit, tested by publishing the kit's own walk-through through it.
First seen by Oriel on .
AI summary
The article demonstrates publishing Markdown to LinkedIn articles with publishing-kit, adapting Medium HTML before paste and auditing LinkedIn’s saved draft to catch content loss.
- The workflow uses publishing-kit 0.37.1 with Claude Code, Codex or Antigravity, and browser automation to paste, title, cover, audit, and publish an article.
- LinkedIn preserves multiline code blocks, links, lists, quotes, and images, but drops inline-code formatting, tables, nested lists, and extra paragraphs within quotes.
- The helper adapts HTML on 127.0.0.1 before navigating to LinkedIn, then compares the reloaded article against the source, including link targets, element counts, and non-space characters.
- The demonstrated article retained all 4 link targets and 3 code blocks, and matched 7853 non-space characters; the cover slot crops images to 16:9.
- The test covered one article published from a visible browser tab; scheduling, editing published articles, background tabs, and LinkedIn API publishing were not tested.
#linkedin #markdown #browser automation #content publishing
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Reactions
Total public reactions reported by the source; distinct from points and likes.
- DEV Community: 25, latest observation ; +1 over observed period since
Comments
Comment count reported by the source.
- DEV Community: 3, latest observation ; 0 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| DEV Community | 5076355 | https://dev.to/gde/publishing-markdown-to-a-linkedin-article-from-an-agent-skill-1hbj Read discussion |