Thanks. Our code has gone through a serious refactoring, so applying
the changes won't be trivial, but I'll try to see which ones would
make sense to apply manually. Most of the changes make sense, and the
general idea for handing HTML is a good one, I think. Perhaps to make
this work we would need to change HtmlPreprocessor from a preprocessor
to a blockprocessor and then use AtomicString as you suggested in your
last commit. With a little more variation this would also give us a
good way to process markdown inside block-level tags like
MarkdownExtra does.
Not sure if we should do this for 2.0, though.
- yuri
On Mon, Dec 8, 2008 at 1:54 PM, Neale Pickett <ne...@wo...> wrote:
> A while ago, I guess around November, I began working on some changes to
> markdown.py that would completely eliminate the need for regular
> expressions, or searching through a string for patterns to be replaced
> with other text.
>
> I was mostly successful. I got rid of the Stash concept completely, as
> well as postprocessing. The change resulted in markdown.py being 260
> lines shorter, and although I didn't time it I'm certain my changes
> result in quicker run times.
>
> I had intended to clean it up so that it passed all the included tests
> and then announce it to the list, but around October I started playing
> around with ikiwiki. I liked it so much that I dropped my wiki project,
> and therefore quit working on the python markdown implementation.
>
> If anybody's interested in what I've done, you can check out my git
> project:
>
> http://woozle.org/~neale/gitweb.cgi?p=py-markdown
>
> or you can pull in my git tree:
>
> http://woozle.org/~neale/projects/py-markdown/
>
> I'm happy to answer questions but I don't think I have it in my to do
> any more work on things. Hopefully this is of some use to the project.
>
> Neale
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Python-markdown-discuss mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss
>
--
http://sputnik.freewisdom.org/
|