Re: [pollen] Highlighted blocks of code in pre tags wrapped in by decode-paragraphs

2019-03-11 Thread Evžen Wybitul
pollen.rkt #lang racket (require pollen/decode pollen pollen/unstable/pygments) (provide highlight root) (define (root . elements) (decode `(root (body ,@elements)) #:txexpr-elements-proc decode-paragraphs)) file.html.pm #lang pollen ◊highlight['python]{ def preprocess(g): clock

Re: [pollen] Highlighted blocks of code in pre tags wrapped in by decode-paragraphs

2019-03-11 Thread Matthew Butterick
> On Mar 11, 2019, at 2:48 AM, Evžen Wybitul wrote: > > The `decode-pagaraphs` incorrectly wraps blocks of code in tags into > paragraphs. I'm using pygments, so within the the code is split into > various s, which I think is causing the problem. Simply seting > as block-tag didn't fix

[pollen] Highlighted blocks of code in pre tags wrapped in by decode-paragraphs

2019-03-11 Thread Evžen Wybitul
The `decode-pagaraphs` incorrectly wraps blocks of code in tags into paragraphs. I'm using pygments, so within the the code is split into various s, which I think is causing the problem. Simply seting as block-tag didn't fix this. Is there any other way? Thanks. -- You received this