Smileyt / python-markdown2

Automatically exported from code.google.com/p/python-markdown2
Other
0 stars 0 forks source link

script confuses <p> and <h#> when both are valid #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a txt file that contains a "list of headers", e.g.

# Header 1 

# Header 2 

# Header 3 

# Header 4

2. Read in text as string and process with python-markdown2

What is the expected output? What do you see instead?
Expected:

<h1> Header 1 </h1>

<h1> Header 2 </h1>

<h1> Header 3 </h1>

<h1> Header 4 </h1>

Actual:

<h1>Header 1</h1>

<p># Header 2</p>

<p># Header 3</p>

<p># Header 4</p>

What version of the product are you using? On what operating system?

1.0.1.16

Please provide any additional information below.

Original issue reported on code.google.com by danny.caballero on 7 Apr 2010 at 3:39

GoogleCodeExporter commented 8 years ago
I can't reproduce this (with the current svn head):

{{{
$ cat foo.txt 
# Header 1

# Header 2

# Header 3

# Header 4
$ python lib/markdown2.py foo.txt 
<h1>Header 1</h1>

<h1>Header 2</h1>

<h1>Header 3</h1>

<h1>Header 4</h1>
}}}

If you can could you please re-open with some more details. Thanks.

Original comment by tre...@gmail.com on 27 May 2010 at 5:55