Avoid creating two paragraphs on autolink. Fixes #63.

This has implications for XML namespaced elements, which were
originally always treated as block elements by the top-level paragraph
rule. As a side-effect of this commit, they are now always considered
inline.
This commit is contained in:
Christopher Jeffrey 2012-07-13 11:06:56 -05:00
parent d49ab2c6f5
commit 05dc64b9da
5 changed files with 11 additions and 1 deletions

View File

@ -55,7 +55,7 @@ block.paragraph = (function() {
('heading')
('lheading')
('blockquote')
('<' + tag())
('<' + tag() + '[\\s>]')
('def');
return new

View File

@ -0,0 +1,3 @@
<p>hello world
<a href="http://example.com">http://example.com</a>
</p>

View File

@ -0,0 +1,2 @@
hello world
<http://example.com>

View File

@ -0,0 +1,3 @@
<p>hello world
<a href="http://example.com">http://example.com</a>
</p>

View File

@ -0,0 +1,2 @@
hello world
<http://example.com>