Hi,
Anybody make Markdown Extra <http://www.michelf.com/projects/php- markdown/> work with TextMate? Not sure if other people think the extra syntax is helpful, but I do.
As this is written in PHP, I'm not sure how it can be implemented.
Another possibility is to use Maruku http://maruku.rubyforge.org/, which is written in Ruby. Anyone here have any needs to these Markdown add-ons? I'm now trying Textile now, but prefer Markdown.
Takaaki
On 8/16/2007, "Takaaki Kato" devlist@samuraicoder.net wrote:
Hi,
Anybody make Markdown Extra http://www.michelf.com/projects/php- markdown/ work with TextMate? Not sure if other people think the extra syntax is helpful, but I do.
MultiMarkdown[1], which TM does support, has a lot of these extra features.
Best, Mark
On Aug 16, 2007, at 7:57 PM, Mark Eli Kalderon wrote:
MultiMarkdown[1], which TM does support, has a lot of these extra features.
Thanks for letting me know. I wasn't really following MultiMarkdown, erroneously thinking that they are more for Latex and some syntax for inside <head></head>.
But, it looks like table, definition list and others are directly added from Markdown Extra. I will check out the format to see what's available and what's not.
Regards,
Takaaki
On 8/16/2007, "Takaaki Kato" devlist@samuraicoder.net wrote:
On Aug 16, 2007, at 7:57 PM, Mark Eli Kalderon wrote:
MultiMarkdown[1], which TM does support, has a lot of these extra features.
Thanks for letting me know. I wasn't really following MultiMarkdown, erroneously thinking that they are more for Latex and some syntax for inside <head></head>.
But, it looks like table, definition list and others are directly added from Markdown Extra. I will check out the format to see what's available and what's not.
While you are exploring extensions to Markdown you should also have a look at pandoc[1]. I merely mentioned MultiMarkdown because TM already supports it.
Best, Mark
On Aug 16, 2007, at 9:54 PM, Mark Eli Kalderon wrote:
While you are exploring extensions to Markdown you should also have a look at pandoc[1]. I merely mentioned MultiMarkdown because TM already supports it.
Thanks. I didn't know pandoc. I'll look into it.
On Aug 16, 2007, at 9:15 PM, Fred B wrote:
You can use php on the command line. What I did is make a script that calls ME, then I call this script instead of markdown.pl in the commands. It's a bit slow sometimes, but it works.
Here the script:
✂------✂------✂------✂------✂------✂------✂------ ✂------✂------✂------ #!/usr/bin/php -q
<?php include_once "/path/to/markdown-extra.php"; while (!feof(STDIN)) { $my_text .= fread(STDIN, 4096); } $my_html = Markdown($my_text); echo $my_html; ?>
✂------✂------✂------✂------✂------✂------✂------ ✂------✂------✂------
I'll try your way. I was wondering if use of php feels slow in locals.
By the way, MarsEdit should support Markdown Extra support.
Thanks, guys for your feedback.
Takaaki
I personally much prefer Markdown-extra over MultiMarkdown, and as I use ME in my blog, it was easier to use it everywhere anyway.
There was no Maruku at the time I did this, I'd try that now instead. Last time I tried, Maruku failed in some rare edge cases but works fine overall.
You can use php on the command line. What I did is make a script that calls ME, then I call this script instead of markdown.pl in the commands. It's a bit slow sometimes, but it works.
Here the script:
✂------✂------✂------✂------✂------✂------✂------✂------✂------✂------ #!/usr/bin/php -q
<?php include_once "/path/to/markdown-extra.php";
while (!feof(STDIN)) { $my_text .= fread(STDIN, 4096); }
$my_html = Markdown($my_text);
echo $my_html; ?> ✂------✂------✂------✂------✂------✂------✂------✂------✂------✂------
-- FredB
On 8/16/07, Takaaki Kato devlist@samuraicoder.net wrote:
Hi,
Anybody make Markdown Extra http://www.michelf.com/projects/php- markdown/ work with TextMate? Not sure if other people think the extra syntax is helpful, but I do.
As this is written in PHP, I'm not sure how it can be implemented.
Another possibility is to use Maruku http://maruku.rubyforge.org/, which is written in Ruby. Anyone here have any needs to these Markdown add-ons? I'm now trying Textile now, but prefer Markdown.
Takaaki
Takaaki Kato http://samuraicoder.net
Hi,
I’m catching up on unread items and I just saw this – you can simplify this script On 16 Aug 2007, at 07:15, Fred B wrote:
Here the script:
✂------✂------✂------✂------✂------✂------✂------ ✂------✂------✂------ #!/usr/bin/php -q
<?php include_once "/path/to/markdown-extra.php"; while (!feof(STDIN)) { $my_text .= fread(STDIN, 4096); } $my_html = Markdown($my_text); echo $my_html; ?>
✂------✂------✂------✂------✂------✂------✂------ ✂------✂------✂------
to just
<?php include_once "/path/to/markdown-extra.php"; echo Markdown(file_get_contents('php://stdin')); ?>
which perhaps will be marginally faster.
Ciarán