Agent skill enables markdown publishing to linkedin articles
The publishing-kit agent skill now allows direct publication of markdown content to LinkedIn articles, navigating the platform's unique formatting challenges.
A new agent skill, publishing-kit, offers a way to publish markdown articles directly to LinkedIn. This tool aims to streamline content creation by converting a single markdown file into a LinkedIn article. It supports various elements like code blocks, links, and headings, and ensures they are correctly rendered after LinkedIn processes the content.
Publishing to LinkedIn's article editor presents specific challenges. The editor often discards or alters formatting, such as inline code, certain heading levels, and tables. For example, multi-line code blocks are generally kept, but inline code formatting is lost after a page reload. Images are re-hosted by LinkedIn, but alt text may be dropped. Tables are not supported by the editor, so the kit converts them into images.
The publishing-kit addresses these issues by adapting the article's HTML before it is pasted into the LinkedIn editor. This pre-processing ensures that the content is optimized for LinkedIn's rendering rules, preserving the intended formatting and structure. The process involves building the HTML, often using a Medium-optimized version, and preparing a 16:9 cover image.