I am trying to use pegdown in a project where I write web pages in markdown and they are compiled/cached at runtime. For some reason in the generated html there are NO spaces/newlines and no tags are being created beyond the first h2 (which isn't closed) and hyperlinks.
From what I have observed pegdown doesn't support github style code where you indicate the language, but this shouldn't be the cause for all of the other mess.
This must be a fault in the way you read the file (or preprocess it) before handing it over to PegDown. I do exactly this for my web site and it works perfectly with PegDown.
I am trying to use pegdown in a project where I write web pages in markdown and they are compiled/cached at runtime. For some reason in the generated html there are NO spaces/newlines and no tags are being created beyond the first h2 (which isn't closed) and hyperlinks.
markdown
html
From what I have observed pegdown doesn't support github style code where you indicate the language, but this shouldn't be the cause for all of the other mess.