> On Mar 11, 2019, at 2:48 AM, Evžen Wybitul <wybitul.ev...@gmail.com> wrote:
> 
> The `decode-pagaraphs` incorrectly wraps blocks of code in <pre> tags into 
> paragraphs. I'm using pygments, so within the <pre> the code is split into 
> various <span>s, which I think is causing the problem. Simply seting <span> 
> as block-tag didn't fix this. Is there any other way? Thanks.


Do you have a test case that demonstrates this bug? `decode-paragraphs` should 
leave `pre` tags alone, because they're already block-level elements, as shown 
in the example below.



#lang racket
(require pollen/decode rackunit)

(define tx
  '((span "a") "\n\n" (pre "b") "\n\n" (span "c"))) 

(check-equal?
 (decode-paragraphs tx)
 '((p (span "a")) (pre "b") (p (span "c"))))

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to