|
From: Artem <ne...@gm...> - 2008-06-30 23:46:58
|
Hi all,
Now Markdown.convert method uses two-step approach. 1 - it converts
markdown to DOM tree, without applying inline patterns, 2 - it parses
DOM tree and applying inline patterns.
The main problem with inline patterns is solved. I re-implemented Inline
patterns mechanism, using string with placeholders for DOM elements. Now
all of those examples:
[*test*](http://example.com)
*[test](http://example.com)*
**[*test*](http://example.com)**
__*[test](http://example.com)*__
works fine:
<p><a href="http://example.com"><em>test</em></a>
<em><a href="http://example.com">test</a></em>
<strong><a href="http://example.com"><em>test</em></a></strong>
<strong><em><a href="http://example.com">test</a></em></strong>
</p>
The new version is 10-20% faster. Not all tests from the test suite is
working now, but I'm working on it.
|