Format Text in LinkedIn Posts and Comments

Format Text in LinkedIn Posts and Comments

This blog post describes a solution that you can use to format text in posts and comments that you submit to LinkedIn.

Originally published to: https://deliverystack.net/2025/11/26/format-text-in-linkedin-comments/

Actually, you can't format text. What you can do is replace characters with other characters that appear formatted. More details (including some caveats) and an online formatter here:

I've been experimenting with bookmarklets on LinkedIn lately, specifically to load and expand comments.

You use bookmarklets like bookmarks, but instead of loading another page, they add JavaScript to the current page. In real time, these can change the DOM of the page including adding functionality of pages. DOM stands for Document Object Model, which is basically the browser's representation of the page's HTML.

For formatting text in posts and comments, bookmarklets can provide greater usability than going to a separate webpage to enter, format, copy, and paste text into a post or comment.

To create a bookmarklet (do this only once) in google's chrome desktop browser:

  1. Press Ctrl+Shft+O to show the bookmark manager.
  2. Click the three dots at the top right to show the bookmark manager menu.
  3. Click Add new bookmark.
  4. Add a new bookmark with a Name something like “LIF”. This is what will appear in the browser's bookmark toolbar and menu.
  5. Copy the following code into the URL field to define the bookmarklet.

To use it:

  1. Activate the bookmarklet.
  2. Enter text for a post or comment.
  3. Select some text
  4. Press one of the buttons that appears.

You can press CTRL+SHFT+b to show the bookmarks toolbar, select the bookmark with the mouse, and CTRL+SHFT+b again to hide it. Alternatively, you can press ALT+F,B and then L some number of times before pressing ENTER.

I don't expect to actually use this; I just wanted to see if it was possible and how it might work. Anyone is welcome to copy and modify the code. If you do any of the following, please provide me with your updated code.