Skip to content

Instantly share code, notes, and snippets.

@tofias
Created October 10, 2013 22:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tofias/6926802 to your computer and use it in GitHub Desktop.
Save tofias/6926802 to your computer and use it in GitHub Desktop.
For processing other things while using Marked.app (e.g., less files into a CSS custom style). Use as a preprocessing script.
#!/bin/bash
# mess.sh for processing other things while using Marked.app (VERSION 2013-10-10)
# Michael Tofias http://tofias.net
# Grab the text off of stdin
THETEXT=$(cat);
# Run any scripts you might want to run, such as less (see http://lesscss.org)
lessc $MARKED_ORIGIN/styles.less > ~/Library/Application\ Support/Marked/Custom\ CSS/styles.css;
# push the text off to stdout
echo "$THETEXT";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment