Hey guys,<br><br>Thanks for your quick replies.<br><br>Michel -- I see your point re: changing the existing setext header rules.<br><br>Yuri -- That looks great; I will take a look at the latest version and see if I can customise it as you suggest.<br>
<br>Simon<br><br><div class="gmail_quote">On Sat, Nov 29, 2008 at 12:57 PM, Yuri Takhteyev <span dir="ltr"><<a href="mailto:qaramazov@gmail.com">qaramazov@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="Ih2E3d">> Another topic is about how to go about changing Michel Fortin's PHP code to<br>
> implement these changes. Is this the right forum to discuss such code<br>
> changes?<br>
<br>
</div>In Python Markdown we've put a lot of effort precisely into making<br>
such changes as painless as possible. For example, adding support for<br>
/emphasis/ just requires one line in _your_ code:<br>
<br>
import markdown<br>
md = markdown.Markdown()<br>
md.inlinePatterns["slash_emphasis"] = \<br>
markdown.inlinepatterns.SimpleTagPattern(r'(\/)([^\/]*)\2', 'em')<br>
print md.convert("this /should/ work")<br>
<br>
(This is for the version currently in git. The last released version<br>
makes it a little more complicated, though not that much more.)<br>
<br>
- yuri<br>
<font color="#888888"><br>
--<br>
<a href="http://sputnik.freewisdom.org/" target="_blank">http://sputnik.freewisdom.org/</a><br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<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>