LinkedIn Cross-Posting Formatting Guide
This guide explains how to format your Jekyll markdown posts for automatic cross-posting to LinkedIn.
Bold Text
In Markdown:
You can use **bold text** like this.
On LinkedIn: The script converts bold markdown to Unicode bold sans-serif characters:
**bold text**โ ๐ฏ๐ผ๐น๐ฑ ๐๐ฒ๐ ๐
This maintains visual emphasis on LinkedIn while using plain text formatting.
Headers
In Markdown:
## Section Header
On LinkedIn: Headers are converted to Unicode bold and placed on their own line:
## Section Headerโ ๐ฆ๐ฒ๐ฐ๐๐ถ๐ผ๐ป ๐๐ฒ๐ฎ๐ฑ๐ฒ๐ฟ
Images
In Markdown:

On LinkedIn: Images are automatically uploaded to LinkedIn and attached to your post!
The script:
- Detects image references in your markdown
- Uploads each image to LinkedInโs media servers
- Attaches the uploaded images to your post
- Removes the image path text from the post content
On Jekyll: Images display normally using your Jekyll asset paths.
Supported Image Paths:
- Absolute Jekyll paths:
/assets/images/posts/image.png - Relative paths:
../images/image.png - Multiple images in a single post are supported
Image Format Requirements:
- PNG, JPG, GIF formats supported
- Maximum file size: 8MB per image
- Recommended dimensions: 1200x627px (LinkedInโs optimal size)
Links
In Markdown:
[link text](https://example.com)
On LinkedIn: Links are converted to plain URLs:
[link text](https://example.com)โhttps://example.com
LinkedIn will automatically make the URL clickable.
Bullet Points
In Markdown:
- First point
- Second point
- Third point
On LinkedIn: Converted to Unicode bullet points:
โข First point
โข Second point
โข Third point
Hashtags
You have two options for adding hashtags:
Option 1: Category-Based (Automatic)
In Frontmatter:
categories: data-science machine-learning
On LinkedIn: Automatically converted to hashtags at the end of the post:
#DataScience #MachineLearning
On Jekyll: Used as standard Jekyll categories (no hashtags shown).
Option 2: HTML Comments (Recommended for Additional Hashtags)
In Markdown:
This is my post content.
<!-- #AI #DeepLearning #NeuralNetworks -->
On LinkedIn: Hashtags are extracted and added to the post:
#AI #DeepLearning #NeuralNetworks
On Jekyll: HTML comments are completely invisible - they wonโt show up in your published post.
Combining Both Methods
You can use both methods together. The script will:
- Extract hashtags from categories
- Extract hashtags from HTML comments
- Remove duplicates
- Append all unique hashtags to the LinkedIn post
Example:
---
categories: data-science
---
My post about machine learning.
<!-- #MachineLearning #AI #DataScience -->
Result on LinkedIn:
#DataScience #MachineLearning #AI
(Note: #DataScience appears only once even though itโs in both categories and HTML comments)
Complete Example
Markdown File:
---
layout: post
author: lina
title: "Understanding Neural Networks"
date: 2025-11-08 14:30:00 -0500
categories: machine-learning
---
Neural networks are **revolutionizing** the field of artificial intelligence.
## Key Concepts
Here are the fundamental principles:
- **Layers**: Input, hidden, and output layers
- **Weights**: Connections between neurons
- **Activation**: Non-linear transformation functions
Learn more at [my website](https://example.com).

<!-- #DeepLearning #AI #NeuralNetworks -->
LinkedIn Output:
Neural networks are ๐ฟ๐ฒ๐๐ผ๐น๐๐๐ถ๐ผ๐ป๐ถ๐๐ถ๐ป๐ด the field of artificial intelligence.
๐๐ฒ๐ ๐๐ผ๐ป๐ฐ๐ฒ๐ฝ๐๐
Here are the fundamental principles:
โข ๐๐ฎ๐๐ฒ๐ฟ๐: Input, hidden, and output layers
โข ๐ช๐ฒ๐ถ๐ด๐ต๐๐: Connections between neurons
โข ๐๐ฐ๐๐ถ๐๐ฎ๐๐ถ๐ผ๐ป: Non-linear transformation functions
Learn more at https://example.com.
#MachineLearning #DeepLearning #AI #NeuralNetworks
Jekyll Output: Displays exactly as written in markdown (with proper rendering of bold, links, images, etc.) - no hashtags visible, no HTML comments shown.
Best Practices
- Use bold sparingly - Unicode bold is very prominent on LinkedIn
- Keep hashtags relevant - LinkedIn recommends 3-5 hashtags per post
- Test locally first - Run the script manually to preview the LinkedIn output:
cd scripts source venv/bin/activate python linkedin_post.py ../_posts/your-post.md - Images - For now, remove image references if theyโre critical to the post content, or describe them in text
- Links - Keep link text descriptive since only the URL will show on LinkedIn
Formatting Not Supported
The following markdown features are simplified for LinkedIn:
- Italic text - Removed (no Unicode italic equivalent)
- Inline code - Backticks removed, displays as plain text
- Code blocks - Currently not preserved (consider using screenshots for code)
- Tables - Not converted (LinkedIn doesnโt support tables)
- Blockquotes - Converted to plain text
For these features, consider whether the content makes sense on LinkedIn or if the post should be Jekyll-only.