Re: forking Markdown.pl?

2008-03-18 Thread Aristotle Pagaltzis
* Tomas Doran [EMAIL PROTECTED] [2008-03-18 13:15]:
 My preferred solution would be for the 'original' (i.e.
 daringfireball brand) Markdown to have most of the code in a
 module called Text::Markdown, but to supply a script wrapper
 called Markdown.pl which provides the original functionality.
 This is what I've done in Text::Markdown currently so that
 people get the best of both worlds.

Note that this doesn’t mean giving up ease of installation that
people currently get. (Ie. non-Perl people, which is basically
every end-user, for whom it is admittedly a burden to install a
CPAN distribution, can just drop a file in some directory and
maybe +x it and that’s it.)

The model here would be Andy Lester’s _ack_ utility (an awesome
grep replacement for trees of source code): it’s available from
CPAN as the App::Ack distribution written in the regular way, as
a module using several other modules and invoked from a small
script. Anyone familiar with Perl who knows how to install
modules can install this just like any other CPAN distro.

But the distro’s build script also has a target that rounds up
all the necessary modules and pastes them into the script file,
producing a program that needs just perl itself preinstalled on
a machine; this is available as `ack-standalone` from Andy’s
site for ack. That way, people who don’t know about modules and
CPAN and all that can just copy a single file onto their machine
and be off to the races.

That seems like a perfectly suitable model to handle Markdown.pl.

Regards,
-- 
Aristotle Pagaltzis // http://plasmasturm.org/
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


HTML5's audio/video and Markdown

2008-03-18 Thread Aslak Raanes
Does anyone have any toughts on how one should be using video   
audio with Markdown? Using the link or the img syntax?


Maybe:

[a film](film.m4v)
[an audio](audio.mp3)

could create:

video src=film.m4v controlsa href=film.m4va film/a/ 
video
audio src=audio.mp4 controlsa href=audio.m4van audio/a/ 
audio


Other suggestions?


___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


Re: HTML5's audio/video and Markdown

2008-03-18 Thread Waylan Limberg
On Tue, Mar 18, 2008 at 1:59 PM, Aslak Raanes [EMAIL PROTECTED] wrote:
 Does anyone have any toughts on how one should be using video 
  audio with Markdown? Using the link or the img syntax?

  Other suggestions?

 This would fall under raw html. You should simple write your own html
directly in the markdown document just the way you want it. The parser
will pass it though unchanged. If you question this answer, go re-read
the [Inline HTML][] section of the syntax rules. The way I read it,
this is the only appropriate solution.

[InlineHTML]: http://daringfireball.net/projects/markdown/syntax#html


-- 

Waylan Limberg
[EMAIL PROTECTED]
___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


Re: HTML5's audio/video and Markdown

2008-03-18 Thread Rad Geek

Aslak Raanes wrote:
| Does anyone have any toughts on how one should be using video 
| audio with Markdown? Using the link or the img syntax?

Aslak,

As I think has been mentioned, this seems like it might be a better use
case for raw HTML (which Markdown was designed to allow for), rather
than some new syntax extension. I mean, really, which of the following
is easier to type, remember, and understand on re-reading?

Here's a video of the quick brown fox jumping over the lazy dog:

[EMAIL PROTECTED](foxydog.m4v)

Wow!

Or:

Here's a video of the quick brown fox jumping over the lazy dog:

video src=foxydog.m4v controlsvideo/video

Wow!

Where Markdown has its own syntax, rather than HTML syntax, it is almost
all for cases where there is a natural, easy, and expressive way to type
something in plaintext, with the main inspiration being plaintext e-mail
style. But there is no natural, easy, and expressive way to represent
embedded video or audio in plaintext, because that's not something
anybody tries to represent in plaintext. You may as well use the HTML
syntax as anything else, it seems to me.

-C

___
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss