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:
parent
d49ab2c6f5
commit
05dc64b9da
@ -55,7 +55,7 @@ block.paragraph = (function() {
|
|||||||
('heading')
|
('heading')
|
||||||
('lheading')
|
('lheading')
|
||||||
('blockquote')
|
('blockquote')
|
||||||
('<' + tag())
|
('<' + tag() + '[\\s>]')
|
||||||
('def');
|
('def');
|
||||||
|
|
||||||
return new
|
return new
|
||||||
|
3
test/new/autolink_lines.html
Normal file
3
test/new/autolink_lines.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<p>hello world
|
||||||
|
<a href="http://example.com">http://example.com</a>
|
||||||
|
</p>
|
2
test/new/autolink_lines.text
Normal file
2
test/new/autolink_lines.text
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
hello world
|
||||||
|
<http://example.com>
|
3
test/tests/autolink_lines.html
Normal file
3
test/tests/autolink_lines.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<p>hello world
|
||||||
|
<a href="http://example.com">http://example.com</a>
|
||||||
|
</p>
|
2
test/tests/autolink_lines.text
Normal file
2
test/tests/autolink_lines.text
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
hello world
|
||||||
|
<http://example.com>
|
Loading…
x
Reference in New Issue
Block a user