Skip to content

Instantly share code, notes, and snippets.

@emig
Last active January 12, 2017 08:34
Show Gist options
  • Save emig/a3c6df402ebee649a5d1aba4e143626d to your computer and use it in GitHub Desktop.
Save emig/a3c6df402ebee649a5d1aba4e143626d to your computer and use it in GitHub Desktop.
extract mermaid description code from javascript comments and generate png

sed '/^\/\*/,/\*\//!d' source | sed '/^\/\*/d' | sed '/^\*\//d' | cat > tmp_file && mermaid -p tmp_file > /dev/null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment