LinkedIn Cross-Posting Formatting Guide

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:

![Alt text](/assets/images/posts/my-image.png)

On LinkedIn: Images are automatically uploaded to LinkedIn and attached to your post!

The script:

  1. Detects image references in your markdown
  2. Uploads each image to LinkedInโ€™s media servers
  3. Attaches the uploaded images to your post
  4. 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)

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).

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:

  1. Extract hashtags from categories
  2. Extract hashtags from HTML comments
  3. Remove duplicates
  4. 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).

![Neural Network Diagram](/assets/images/nn-diagram.png)

<!-- #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

  1. Use bold sparingly - Unicode bold is very prominent on LinkedIn
  2. Keep hashtags relevant - LinkedIn recommends 3-5 hashtags per post
  3. 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
    
  4. Images - For now, remove image references if theyโ€™re critical to the post content, or describe them in text
  5. 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.