Skip to content

devlimelabs/markdowntolinkedin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

57 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

LinkedIn Markdown Formatter

Live Demo License: MIT React Vite

A powerful React application that converts Markdown documents to LinkedIn-compatible formatted text using Unicode characters. Transform your documentation, blog posts, and technical content into beautifully formatted LinkedIn posts with just one click.

๐Ÿš€ Features

Core Functionality

  • Real-time Markdown conversion - See your formatted text update instantly as you type
  • Auto-conversion from rich text - Paste from Word, Google Docs, or any website and automatically convert to Markdown
  • Full Markdown support - Headers, bold, italic, strikethrough, links, lists, code blocks, and blockquotes
  • Unicode formatting - Uses mathematical Unicode characters for bold/italic text that displays correctly on LinkedIn
  • Live preview - See exactly how your post will look on LinkedIn with desktop and mobile views

User Experience

  • Drag & drop support - Drop .md files directly into the editor
  • Keyboard shortcuts - Quick formatting with Ctrl+B, Ctrl+I, Ctrl+K, etc.
  • Context menu - Right-click selected text for formatting options
  • Formatting toolbar - Visual buttons for all formatting options
  • Undo/Redo - Full undo/redo support with Ctrl+Z/Ctrl+Y

Export & Sharing

  • One-click copy - Copy formatted text to clipboard
  • Download as text - Save your formatted content as a .txt file
  • Email to self - Send content via email for later use
  • Character count - Real-time LinkedIn character limit tracking (3,000 characters)

Advanced Features

  • LinkedIn compatibility warnings - Alerts for unsupported features
  • Mobile-responsive design - Works seamlessly on all devices
  • Sliding side guide - Built-in help with Markdown syntax reference
  • Analytics tracking - Usage analytics via Firebase (privacy-focused)

๐Ÿ“ธ Demo

LinkedIn Markdown Formatter Demo

Transform your Markdown content into LinkedIn-ready posts with real-time preview

๐Ÿ› ๏ธ Installation

Prerequisites

  • Node.js 18.0 or higher
  • npm or yarn package manager

Quick Start

# Clone the repository
git clone https://github.com/devlimelabs/markdowntolinkedin.git
cd markdowntolinkedin

# Install dependencies
npm install

# Start development server
npm run dev

# Open http://localhost:5173 in your browser

Production Build

# Build for production
npm run build

# Preview production build
npm run preview

๐Ÿ”ง Development

Project Structure

markdowntolinkedin/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/           # React components
โ”‚   โ”‚   โ”œโ”€โ”€ ui/              # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ ContextMenu.jsx  # Right-click formatting menu
โ”‚   โ”‚   โ”œโ”€โ”€ FormattingToolbar.jsx  # Toolbar with formatting buttons
โ”‚   โ”‚   โ””โ”€โ”€ SideGuide.jsx    # Help guide sidebar
โ”‚   โ”œโ”€โ”€ lib/                 # Utility libraries
โ”‚   โ”‚   โ”œโ”€โ”€ firebase.js      # Analytics and tracking
โ”‚   โ”‚   โ”œโ”€โ”€ htmlToMarkdown.js  # HTML to Markdown conversion
โ”‚   โ”‚   โ”œโ”€โ”€ markdownChecker.js  # Feature validation
โ”‚   โ”‚   โ”œโ”€โ”€ textFormatting.js  # Text formatting utilities
โ”‚   โ”‚   โ””โ”€โ”€ undoRedoManager.js  # Undo/redo functionality
โ”‚   โ”œโ”€โ”€ App.jsx              # Main application component
โ”‚   โ””โ”€โ”€ main.jsx             # Application entry point
โ”œโ”€โ”€ docs/                    # Project documentation
โ”œโ”€โ”€ public/                  # Static assets
โ”œโ”€โ”€ firebase.json           # Firebase hosting configuration
โ””โ”€โ”€ package.json           # Dependencies and scripts

Available Scripts

npm run dev      # Start development server (http://localhost:5173)
npm run build    # Build for production
npm run preview  # Preview production build
npm run deploy   # Build and deploy to Firebase

Key Technologies

  • React 18.3.1 - Modern React with hooks
  • Vite - Fast build tool and development server
  • Tailwind CSS - Utility-first CSS framework
  • Lucide React - Beautiful, customizable icons
  • Sonner - Toast notifications
  • Firebase - Hosting and analytics

๐Ÿ“– Usage

Basic Usage

  1. Enter Markdown: Type or paste your Markdown content into the left editor
  2. See Preview: Watch the LinkedIn-formatted preview update in real-time
  3. Copy Result: Click "Copy to Clipboard" to copy the formatted text
  4. Post to LinkedIn: Paste the formatted content directly into LinkedIn

Advanced Features

Auto-Conversion

  • Toggle the "Auto" button to automatically convert rich text from Word, Google Docs, or websites
  • Paste formatted content and it will be automatically converted to Markdown first

Keyboard Shortcuts

  • Ctrl+B - Bold selected text
  • Ctrl+I - Italic selected text
  • Ctrl+K - Create link from selected text
  • Ctrl+Shift+S - Strikethrough selected text
  • Ctrl+Z - Undo
  • Ctrl+Y or Ctrl+Shift+Z - Redo
  • ? - Open help guide

File Operations

  • Drag and drop .md files directly into the editor
  • Use "Download Text" to save formatted content as a file
  • Use "Email to Self" to send content via email

๐ŸŽจ Formatting Examples

Input (Markdown)

# My LinkedIn Post

This is a **bold statement** and some *italic text*.

## Key Points

- First important point
- Second important point
- Third important point

Check out my [website](https://example.com) for more info!

> This is a quote that will be italicized

Output (LinkedIn-formatted)

๐— ๐˜† ๐—Ÿ๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—œ๐—ป ๐—ฃ๐—ผ๐˜€๐˜

This is a ๐—ฏ๐—ผ๐—น๐—ฑ ๐˜€๐˜๐—ฎ๐˜๐—ฒ๐—บ๐—ฒ๐—ป๐˜ and some ๐˜ช๐˜ต๐˜ข๐˜ญ๐˜ช๐˜ค ๐˜ต๐˜ฆ๐˜น๐˜ต.

๐—ž๐—ฒ๐˜† ๐—ฃ๐—ผ๐—ถ๐—ป๐˜๐˜€

โ— First important point
โ— Second important point
โ— Third important point

Check out my website (https://example.com) for more info!

๐˜›๐˜ฉ๐˜ช๐˜ด ๐˜ช๐˜ด ๐˜ข ๐˜ฒ๐˜ถ๐˜ฐ๐˜ต๐˜ฆ ๐˜ต๐˜ฉ๐˜ข๐˜ต ๐˜ธ๐˜ช๐˜ญ๐˜ญ ๐˜ฃ๐˜ฆ ๐˜ช๐˜ต๐˜ข๐˜ญ๐˜ช๐˜ค๐˜ช๐˜ป๐˜ฆ๐˜ฅ

๐Ÿค Contributing

We welcome contributions! Please follow these guidelines:

Getting Started

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Install dependencies: npm install
  4. Start development: npm run dev
  5. Make your changes
  6. Test thoroughly
  7. Commit your changes: git commit -m 'Add amazing feature'
  8. Push to branch: git push origin feature/amazing-feature
  9. Open a Pull Request

Development Guidelines

  • Follow the existing code style and patterns
  • Add comments for complex logic
  • Update documentation for new features
  • Ensure all features work on both desktop and mobile
  • Test with various Markdown inputs
  • Check LinkedIn compatibility for new formatting features

Code Style

  • Use modern React patterns (hooks, functional components)
  • Follow Tailwind CSS utility-first approach
  • Use meaningful component and variable names
  • Keep components focused and reusable
  • Add proper error handling

Bug Reports

When reporting bugs, please include:

  • Steps to reproduce the issue
  • Expected vs actual behavior
  • Browser and device information
  • Sample Markdown content that causes the issue

๐Ÿ”’ Privacy & Security

  • No data collection: Your content never leaves your browser
  • Local processing: All Markdown conversion happens client-side
  • Optional analytics: Basic usage analytics via Firebase (no personal data)
  • No account required: Use the tool completely anonymously

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Unicode Mathematical Characters - For enabling beautiful formatting on LinkedIn
  • shadcn/ui - For the excellent UI component patterns
  • Lucide React - For the beautiful icons
  • Tailwind CSS - For rapid UI development
  • Firebase - For reliable hosting and analytics

๐Ÿ“ž Support

  • Issues: Report bugs and request features on GitHub Issues
  • Documentation: Check the /docs directory for detailed documentation
  • Contact: Report Issues

๐ŸŒŸ Why This Tool?

LinkedIn's limited formatting options make it challenging to create visually appealing posts. This tool bridges that gap by:

  • Converting standard Markdown to LinkedIn-compatible Unicode formatting
  • Providing real-time preview so you know exactly how your post will look
  • Supporting advanced features like auto-conversion from rich text
  • Offering a seamless workflow from draft to published post

Perfect for:

  • Technical content creators
  • Documentation writers
  • Blog post authors
  • Anyone who wants professional-looking LinkedIn posts

Made with โค๏ธ for the LinkedIn community

๐Ÿš€ Try it now at markdowntolinkedin.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •