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] 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

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] 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

[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