Extra markdown suggestions

Simon Bull waysoftheearth at yahoo.com.au
Sat Nov 29 04:31:51 EST 2008


Hey guys,

Thanks for your quick replies.

Michel -- I see your point re: changing the existing setext header rules.

Yuri -- That looks great; I will take a look at the latest version and see
if I can customise it as you suggest.

Simon

On Sat, Nov 29, 2008 at 12:57 PM, Yuri Takhteyev <qaramazov at gmail.com>wrote:


> > Another topic is about how to go about changing Michel Fortin's PHP code

> to

> > implement these changes. Is this the right forum to discuss such code

> > changes?

>

> In Python Markdown we've put a lot of effort precisely into making

> such changes as painless as possible. For example, adding support for

> /emphasis/ just requires one line in _your_ code:

>

> import markdown

> md = markdown.Markdown()

> md.inlinePatterns["slash_emphasis"] = \

> markdown.inlinepatterns.SimpleTagPattern(r'(\/)([^\/]*)\2', 'em')

> print md.convert("this /should/ work")

>

> (This is for the version currently in git. The last released version

> makes it a little more complicated, though not that much more.)

>

> - yuri

>

> --

> http://sputnik.freewisdom.org/

> _______________________________________________

> 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/20081129/5705cd1f/attachment.html>


More information about the Markdown-Discuss mailing list