Created
October 10, 2013 22:46
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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