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