pirave / postmarkup

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

Code duplicate #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The use of the [code] tags causes the code to be duplicated, once for the
pygmented version, and then one in a non-displayed div. I'm using this in
an rss feed and it's showing up twice :(

Is there any way to prevent it from producing the duplicate?

Original issue reported on code.google.com by davy.wybiral on 14 Jun 2008 at 1:28

GoogleCodeExporter commented 8 years ago
This is caused by a design flaw in 1.0.7. I had now way of completely replacing 
the
contents of a bbcode pair, so I instead wrapped html in a div with 
display:none. I'm
guessing your rss code removed that div, which lead to the code being displayed 
twice.

You'll be glad to know that the new version (1.0.8) doesn't have that problem. 
It's
available from SVN, once it has been tested I'll release 1.1

A workaround, if you want to use 1.0.7 would be to disable Pygments.

Original comment by willmcgugan on 22 Jun 2008 at 9:46

GoogleCodeExporter commented 8 years ago
I needed pygments for the actual pages, so I ended up parsing the div out of the
contents (a quick hack, but it worked). Great to know that the current SVN fixes
this, I'll definitely checkout. Thanks (nice module btw, it's really easy to 
extend).

Original comment by davy.wybiral on 22 Jun 2008 at 12:41

GoogleCodeExporter commented 8 years ago

Original comment by willmcgugan on 23 Sep 2008 at 8:24