Syntax for extensions

Florian Lindner Florian.Lindner at xgm.de
Thu Feb 14 11:48:16 EST 2008


In article
<e5d795bb0802131557q58b8fadei80f0cbb313669aa7 at mail.gmail.com>
"WaylanLimberg" <waylan at gmail.com> wrote:

> Which implementation of markdown are you using (perl, php,

> python,ruby...)? The answer would depend to a large extent upon that.



> For example, Python-Markdown has a fairly simple extension api [1]

> for just that sort of thing, but to my knowledge, no other

> implementationshares anything that closely resembles it.


Thanks for that link. Actually I'm using python-markdown.
However my problem is not about the implementation but how to design
the syntax of the extension in order not to collide with markdown
syntax.

Thanks,

Florian

> [1]:

> http://www.freewisdom.org/projects/python-markdown/Writing_Extensions



> On Feb 13, 2008 2:25 PM, Florian Lindner <mailinglists at xgm.de> wrote:

>> Hello,

>> I need to to slightly extend the markdown syntax. (place an image

>> (img tag) in text which URL has not yet been determined). Therefore

>> I want to define something like $[Alt text](img.jpg) which would be

>> replaced by my pre-processor with ![Alt text](/path/to/img.jpg) and

>> then sent to markdown.



>> Is there any special syntax that should be used for such 3rd party

>> extensions? How would you do it?



>> Thanks,



>> Florian



>> _______________________________________________

>> Markdown-Discuss mailing list

>> Markdown-Discuss at six.pairlist.net

>> http://six.pairlist.net/mailman/listinfo/markdown-discuss





--

I'm using an evaluation license of nemo since 65 days.
You should really try it!
http://www.malcom-mac.com/nemo




More information about the Markdown-Discuss mailing list