Extra markdown suggestions
waysoftheearth at yahoo.com.au
Sat Nov 29 04:31:51 EST 2008
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.
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
> > 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
> Markdown-Discuss mailing list
> Markdown-Discuss at six.pairlist.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Markdown-Discuss