willmcgugan / postmarkup

Automatically exported from code.google.com/p/postmarkup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unnecessary extra tags

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. Render text: "[center]text[/center]" with option paragraphs=True

What is the expected output? What do you see instead?
I expected:
<div style="text-align:center;">text</div>
But I see:
<p><div style="text-align:center;">text</div></p><p></p>

What version of the product are you using? On what operating system?
svn-trunk, linux

Please provide any additional information below.

I have other similar issue, but I don't know if this is a bug:

1. Render text: "text1[center]text[/center]" with option paragraphs=True

I expected:
<p>text1</p><div style="text-align:center;">text</div>
But I see:
<p>text1<div style="text-align:center;">text</div></p><p></p>

Original issue reported on code.google.com by frolvlad on 14 Feb 2012 at 9:41

First issue seems fixed in trunk. For the second, the redundant extra paragraph 
is gone. But there is still a div inside a p tag, which is not strictly valid 
although all browsers handle it fine.

Original comment by willmcgugan on 28 Apr 2013 at 2:45

  • Changed state: WontFix