Thanks. I finally blundered my way to that after downloading MultiMarkdown and SmartyPants and putting them into ~/bin which is in my $PATH. MM now works from command line and from Textmate. I suppose, after rebooting my brain, that what i really want is the language definition which lets me use shortcuts.
I just discovered MultiMarkdown and have become quite fond of Markdown with TextMate. But Markdown wasn't enough for the websites or compatible with the Wiki. Well done, folks.
Lewy
The easiest thing to do is take the bundle that I posted to the list earlier today unzip it and put it in ~/Library/Application Suppport/TextMate/Bundles (or just unzip and double click on it)The bundle contains all the MultiMarkdown scripts and xslt files needed.BradOn Mar 29, 2006, at 7:57 PM, Lewis Overton wrote:For those of us who are real dummies, but fans of Markdown, could you elaborate on where to put what to get MultiMarkdown (MM) to work with Textmate (TM)?
I downloaded MM and stashed it in ~/Library/Application Support/Textmate/Support/bin.
I put MM in ~/Lib ... /Bundles and called it Markdown.pl. I copied a chunk from the demo and tried to preview it. Got lots of "can't find" errors. Maybe I can puzzle this out but if you have a minute or so, a few hints would be really helpful.
LewyOn 3/29/06, Brad Miller <bonelake@mac.com > wrote:Mark,
Good question. It was mostly for experimental reasons.
Around the time I did this there was lots of chat on ##textmate about
various approaches to go from something like markdown to pdf.
Several people were very anti xslt, and htmldoc sounded like one of
the favorites at the time, and for smallish kinds of documents
htmldoc seemed like it was quicker and more efficient than
MultiMarkdown -> xhtml -> Latex -> pdf
For more complicated documents I have had great luck writing the bulk
of my document in multimarkdown and then tweaking the final markup in
the generated latex document.
Brad
On Mar 29, 2006, at 1:49 PM, Mark Eli Kalderon wrote:
> Thanks again, Brad. It was useful to have a look at this. Is there
> any particular reason you are using htmldoc in generating the PDF?
> As opposed to pdflatex say? Is it because htmldoc does a better job
> at generating pdfs viewable online? Best, Mark
> On 29 Mar 2006, at 17:05, Brad Miller wrote:
>
>> Mark,
>>
>> Here is my MultiMarkdown bundle.
>>
>> There are commands to go from MultiMarkdown to
>> Latex
>> HTML
>>
>> I have found this to be a very useful little bundle. Let me know
>> if you have any trouble.
>>
>>
>> <multimarkdown.zip>
>>
>> Brad
>>
>> On Mar 28, 2006, at 5:28 PM, Mark Eli Kalderon wrote:
>>
>>> Apologies in advance if the answer to my query is blindingly
>>> obvious---I am a UNIX newbie.
>>>
>>> I am trying to implement Fletcher Penney's variant of Markdown,
>>> MultiMarkdown ( http://fletcher.freeshell.org/wiki/MultiMarkdown),
>>> as a TextMate bundle. The basic idea is to convert a Markdown
>>> document into a full xhtml document and then to use xslt to
>>> convert it into different formats such as LaTeX.
>>>
>>> I have written TextMate commands for each step of the process,
>>> and it all works fine, but I would also like to add commands that
>>> string these steps together. But there is a problem. For example,
>>> while the following two TextMate commands work:
>>>
>>> Save: Nothing
>>> Command(s): #!/bin/bash
>>> /usr/local/bin/MultiMarkdown.pl "$TM_FILEPATH"
>>> Input: None
>>> Output: Create New Document
>>>
>>> Save: Nothing
>>> Command(s): #!/bin/bash
>>> /usr/bin/xsltproc -nonet -novalid /usr/local/bin/
>>> xhtml2article.xslt "$TM_FILEPATH"
>>> Input: None
>>> Output: Create New Document
>>>
>>> the following fails---it generates an empty file:
>>>
>>> Save: Nothing
>>> Command(s): #!/bin/bash
>>> /usr/local/bin/MultiMarkdown.pl "$TM_FILEPATH" | /usr/bin/
>>> xsltproc -nonet -novalid /usr/local/bin/xhtml2article.xslt
>>> Input: None
>>> Output: Create New Document
>>>
>>> Any ideas? Thanks in advance.
>>>
>>> All the best, Mark
>>> _________________
>>> Mark Eli Kalderon
>>> Department of Philosophy
>>> University College London
>>> Gower Street
>>> London WC1E 6BT
>>>
>>> Dept webpage: http://www.ucl.ac.uk/philosophy
>>> Personal wepage: http://www.kalderon.demon.co.uk
>>>
>>>
>>>
>>> ____________________________________________________________________
>>> __
>>> For new threads USE THIS: textmate@lists.macromates.com
>>> (threading gets destroyed and the universe will collapse if you
>>> don't)
>>> http://lists.macromates.com/mailman/listinfo/textmate
>>
>>
>> _____________________________________________________________________
>> _
>> For new threads USE THIS: textmate@lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate@lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
______________________________________________________________________
For new threads USE THIS: textmate@lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate______________________________________________________________________For new threads USE THIS: textmate@lists.macromates.com(threading gets destroyed and the universe will collapse if you don't)
______________________________________________________________________
For new threads USE THIS: textmate@lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate