[TxMt] Markdown to PDF via Prince REQ
Allan Odgaard
throw-away-1 at macromates.com
Sun May 14 15:40:10 UTC 2006
On 12/5/2006, at 20:54, Robert M. Ullrey wrote:
> [...] I can get prince to run, but not glob the css file name. My
> end product is a PDF of the html source file. Cutie, but not what I
> want.
CSS_FILES=$(ruby <"$TM_FILEPATH" -ne 'puts $1 if /<link(?=[^>]*?
type="text\/css")[^>]*?href="(.*?)"/')
This will give all href arguments to link tags of type text/css.
More information about the textmate
mailing list