Markdown

2 views
Skip to first unread message

Robert Impey

unread,
Aug 17, 2010, 3:26:45 PM8/17/10
to Haddock CMS
What's the new markdown plug-in for?

Saul Howard

unread,
Aug 17, 2010, 11:45:23 PM8/17/10
to Haddock CMS
On Aug 18, 2:26 am, Robert Impey <robert.im...@gmail.com> wrote:
> What's the new markdown plug-in for?

I was importing a large text written in Markdown to a Haddock site
[1]. Markdown is yet another markup language [2]. I wanted to keep it
in Markdown and use the site-texts plug in to display it, so I needed
a class to use as a filter function for the site-text.

I found the pretty good php-markdown file and put a helper class
wrapper around it for use in Haddock. It's annoyingly not in class
form itself (just a bunch of functions in an include file), but it
seems to work so far!

[1] http://drama-theory.com/articles/oedipus-decision-maker-what-is-drama-theory
[2] http://daringfireball.net/projects/markdown/

Robert Impey

unread,
Aug 18, 2010, 1:44:36 AM8/18/10
to haddo...@googlegroups.com
It might be an idea then to use namespaces to limit the scope of the
functions from the file.

http://www.php.net/manual/en/language.namespaces.php

> --
> You received this message because you are subscribed to the Google Groups "Haddock CMS" group.
> To post to this group, send email to haddo...@googlegroups.com.
> To unsubscribe from this group, send email to haddock-cms...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/haddock-cms?hl=en.
>
>

--
Rob Impey

Reply all
Reply to author
Forward
0 new messages