[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 message

[pollen] Tutorial how to set up a website like https://beautifulracket.com/

2019-03-11 Thread Dmitrij Moreinis
I would like to set a project like https://beautifulracket.com/ is there a tutorial oon how to set this up? Is this running ion heruko? Amazon? What do I need in the background? Thank you for pointing me in the right direction. Great website by the way. I have some questions about interactivity. I

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 t

Re: [pollen] Tutorial how to set up a website like https://beautifulracket.com/

2019-03-11 Thread Matthew Butterick
> On Mar 11, 2019, at 4:41 AM, Dmitrij Moreinis > wrote: > > I would like to set a project like https://beautifulracket.com/ > is there a tutorial oon how to set this up? Is > this running ion heruko? Amazon? What do I need in the background? > Thank you for poi

Re: [pollen] Highlight code blocks are indenting too much

2019-03-11 Thread Evžen Wybitul
I just solved the issue. In my template.html I replaced ◊(map ->html (select-from-doc 'body here)) with ◊(map ->html (select-from-doc 'body here)) And the problem is solved. Not sure if there is a better way. -- You received this message because you are subscri

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 10:00 AM, Evžen Wybitul wrote: > > And the result is three tags in a . It can be fixed by adding 'pre > to #:exclude-tags, but I though decode-paragraphs should exclude pre (and all > block-tags) automatically. `decode` works recursively. In this case, I believe the pro