Medium

August 23, 2024 · View on GitHub

Medium is a popular blogging platform.

This is widely used by tech authors.

Here is mine:

https://medium.com/@harisekhon

Keyboard Shortcuts

ActionMacWindows
Shortcuts help⌘ + ?Ctrl + ?
Bold⌘ + BCtrl + B
Italic⌘ + ICtrl + I
Link⌘ + KCtrl + K
Header⌘ + Opt + 1Ctrl + Alt + 1
Subheader⌘ + Opt + 2Ctrl + Alt + 2
Separator⌘ + EnterCtrl + Enter
Inline code``
Code block⌘ + Opt + 6 / ```Ctrl + Alt + 6 / ```
Bullet-point list* + Space* + Space
Numbered list1. + Space1. + Space
Quote⌘ + Opt + 5Ctrl + Alt + 5
Featured ImageShift + FShift + F
Focal pointOpt + Right-clickAlt + Right-click
Mention a user@username / @name@username / @name

Convert WebP Images to PNG format

Medium doesn't accept modern webp format images.

You must convert them to jpg or png format.

On Mac, install the dwebp homebrew package:

brew install webp

Convert the image:

dwebp "$name.webp" -o "$name.png"

or shorter and safer using function in DevOps-Bash-tools repo:

webp_to_png "$name.webp"

This function adds safety to not overwrite the destination file if it already exists because dwebp will blindly overwrite the -o outfile.