demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

Code blocks don't work when preceded by inline HTML tags #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make a file containing the following:

<br>

    foo
    bar

2. Run pandoc --no-wrap --from=markdown on it.

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

I expected something like:

<br>
<pre><code>foo
bar
</code></pre>

But I got:

<br>

    <p>foo bar</p>

I was originally seeing if literate Haskell would work by doing the following:

<pre><code>
> foo
> bar
</code></pre>

Which gives (note the incorrect tag nesting):

<pre><code><blockquote>foo bar </code></pre>
</blockquote>

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

SVN revision 1161 on Windows XP, compiled with the help of Cygwin and GHC
6.8.2.

Original issue reported on code.google.com by Deewi...@gmail.com on 30 Dec 2007 at 12:35

GoogleCodeExporter commented 8 years ago
Thanks for the report.  I'll have to rethink the way pandoc handles
raw HTML.  In the mean time, you'll find that pandoc behaves correctly
in these cases when used with the --strict flag.  (Of course, then you
don't get footnotes etc.)

Original comment by fiddloso...@gmail.com on 30 Dec 2007 at 4:15

GoogleCodeExporter commented 8 years ago
Fixed in r1164.  Thanks for taking the trouble to report this!

Original comment by fiddloso...@gmail.com on 31 Dec 2007 at 1:03