Skip to content

Instantly share code, notes, and snippets.

@kezzico
Created August 11, 2023 17:28
Show Gist options
  • Save kezzico/417e67b9e7c634147bba657aa43d9f8e to your computer and use it in GitHub Desktop.
Save kezzico/417e67b9e7c634147bba657aa43d9f8e to your computer and use it in GitHub Desktop.
MacOS users can use pbpaste to make diagrams
#!/bin/zsh
out=$1
if [[ -z $out ]]; then
echo "usage [outputfile]"
fi
pbpaste | mmdc - -o $out --width 1600 --theme dark -b black;
open $out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment