Okay, thanks for the pointers -- I will see how far I get.<br><br>So what is the relationship (if any) between the Python-Markdown[1] and the Markdown2[2] implementations?<br><br>Is this list primarily oriented toward discussion of one over the other, or open to more general discussion?<br>
<br>Simon<br><br>[1] <a href="http://pypi.python.org/pypi/Markdown">http://pypi.python.org/pypi/Markdown</a><br>[2] <a href="http://pypi.python.org/pypi/markdown2">http://pypi.python.org/pypi/markdown2</a><br><br><br><br>
<div class="gmail_quote">On Mon, Jun 22, 2009 at 1:14 PM, Waylan Limberg <span dir="ltr"><<a href="mailto:waylan@gmail.com">waylan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sun, Jun 21, 2009 at 4:20 AM, Simon Bull<<a href="mailto:waysoftheearth@yahoo.com.au">waysoftheearth@yahoo.com.au</a>> wrote:<br>
><br>
> One possible solution to my issue would be something like this:<br>
><br>
> /some text/ --> <font style="italic">some text</font><br>
> -s-o-m-e-t-e-x-t- --> <font style="struckout">some text</font><br>
> _some text_ --> <font style="underline">some text</font><br>
> *some text* --> <font style="bold">some text</font><br>
><br>
> I anticipate that there probably won't be much appetite for changing the<br>
> markdown tool, so I intend to have a go at implementing the above for my own<br>
> "local" markdown (with approximately zero knowledge of Python).<br>
<br>
</div>Python-Markdown [1] (not Markdown2) recently released version 2.0 in<br>
which most of the code has been refactored. The thing about<br>
Python-Markdown (as opposed to any other implementation AFAIK) is that<br>
it is very easy to alter the syntax to your liking via the extension<br>
API. You can find the docs here:<br>
<br>
<a href="http://gitorious.org/python-markdown/mainline/blobs/master/docs/writing_extensions.txt" target="_blank">http://gitorious.org/python-markdown/mainline/blobs/master/docs/writing_extensions.txt</a><br>
<br>
or here (but it looks like the wiki is having some spam issues):<br>
<br>
<a href="http://www.freewisdom.org/projects/python-markdown/Writing_Extensions&version=000011" target="_blank">http://www.freewisdom.org/projects/python-markdown/Writing_Extensions&version=000011</a><br>
<br>
I'd suggest replacing/adding your own "InlinePatterns" to alter the<br>
existing emphasis and strong patterns. If you need any help, feel free<br>
to ask.<br>
<br>
[1]: <a href="http://pypi.python.org/pypi/Markdown" target="_blank">http://pypi.python.org/pypi/Markdown</a><br>
<br>
--<br>
----<br>
\X/ /-\ `/ |_ /-\ |\|<br>
<font color="#888888">Waylan Limberg<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Markdown-Discuss mailing list<br>
<a href="mailto:Markdown-Discuss@six.pairlist.net">Markdown-Discuss@six.pairlist.net</a><br>
<a href="http://six.pairlist.net/mailman/listinfo/markdown-discuss" target="_blank">http://six.pairlist.net/mailman/listinfo/markdown-discuss</a><br>
</div></div></blockquote></div><br>