Skip to content

Format4LinkedIn formats markdown copied from an editor so it's friendly for pasting into LinkedIn. It converts Markdown bold/italic to Unicode-styled characters (or strips the markers), transforms header styles, and trims trailing whitespace or final blank lines.

License

Notifications You must be signed in to change notification settings

gitNetw0rk/format4linkedin

 
 

Repository files navigation

Format4LinkedIn — Obsidian plugin

Format4LinkedIn formats markdown copied from an editor so it's friendly for pasting into LinkedIn. It converts Markdown bold/italic to Unicode-styled characters (or strips the markers), transforms header styles, and trims trailing whitespace or final blank lines.

Desktop only: This plugin is intended for desktop Obsidian installs only. It relies on desktop clipboard behaviour and uses Unicode formatting that may not be supported or desirable on mobile platforms.

Purpose

Provide a simple, local way to copy Markdown content from Obsidian and paste it into LinkedIn (or any rich-text field) while preserving intended emphasis and cleaning up heading/whitespace styling.

Features

  • Copy the active editor's content to the clipboard with applied transformations.
  • Convert or remove bold markers (**bold** / __bold__).
  • Convert or remove italic markers (*italic* / _italic_).
  • Transform H1/H2/H3 into plain text, ALL CAPS, Title Case, or Sentence case.
  • Trim trailing whitespace on each line and optionally remove ending blank lines.

Settings

Open Settings → Community plugins → Format4LinkedIn to configure:

  • Remove bold markers — strip ** / __ markers or convert the content to Unicode bold characters.
  • Remove italic markers — strip * / _ markers or convert the content to Unicode italic characters.
  • H1 / H2 / H3 style — choose plain, allcaps, title, or sentence for header transformations.
  • Remove trailing whitespace — trim trailing spaces/tabs from each line.
  • Remove ending blank lines — remove blank lines/newlines at the end of the document.

Settings are persisted via Obsidian's settings API.

Usage

  • Click the clipboard icon in the left ribbon to copy the active note's formatted markdown to your clipboard.
  • Run the command Copy markdown to clipboard (command id: format4linkedin:copy-markdown) from the command palette or bind a hotkey.

Paste into LinkedIn or another rich-text editor. The plugin will apply header, bold, and italic transformations according to your settings.

Notes

  • Ensure isDesktopOnly in manifest.json reflects desktop-only behaviour.
  • The plugin performs local transformations only and does not transmit content to external services.

References

About

Format4LinkedIn formats markdown copied from an editor so it's friendly for pasting into LinkedIn. It converts Markdown bold/italic to Unicode-styled characters (or strips the markers), transforms header styles, and trims trailing whitespace or final blank lines.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 88.2%
  • JavaScript 9.8%
  • CSS 2.0%