ChrisPenner / slick

Static site generator built on Shake configured in Haskell
BSD 3-Clause "New" or "Revised" License
204 stars 24 forks source link

How to enable syntax highlighting? #13

Closed locallycompact closed 3 years ago

locallycompact commented 4 years ago

Hi. I know I've had this working in the past, but I assumed this would work.

https://gitlab.com/shakebook-site/shakebook-site.gitlab.io/-/blob/master/app/Main.hs#L123

But I'm not seeing any syntax highlighting, here

https://shakebook-site.gitlab.io/docs/

locallycompact commented 4 years ago

It seems I have to somehow get this to evaluate

    $if(highlighting-css)$
      <style type="text/css">
    $highlighting-css$
      </style>
    $endif$
ChrisPenner commented 4 years ago

Hrmm? I'm seeing highlighting on the page you linked: image

locallycompact commented 4 years ago

Sorry, I actually hardcopied the CSS that it should generate to get it working on master since I posted this. I still can't get the mustache directives and the pandoc directives to play together.

ChrisPenner commented 4 years ago

Is it possible it's related to the templating variable problems in https://github.com/ChrisPenner/slick/issues/12 ?