middleman-syntax icon indicating copy to clipboard operation
middleman-syntax copied to clipboard

Instructions for CSS are incorrect for Middleman 4

Open andy-twosticks opened this issue 7 years ago • 2 comments

The instructions here assume that you can dynamically render a .scss file. I'm told that this does not work for Middleman 4.

andy-twosticks avatar Jul 03 '17 19:07 andy-twosticks

TL;DR for others coming here, this works in a new vanilla markdown int foo site:

  • Create source/stylesheets/highlighting.css.erb as per the instructions.

  • Add to source/stylesheets/site.css.scss

    @import 'highlighting.css'
    

I've only done a quick test but I also find that it only works properly with redcarpet (not the default kramdown). If I get to the bottom of that then I will report back.

johnlane avatar Dec 06 '17 11:12 johnlane

Looks like this is still an issue. I believe that since rouge dynamically generates the contents of the file via erb it will only work as a .css.erb file, as sass does not compile from ERB in middleman 4.

agbodike avatar Jun 03 '19 06:06 agbodike

Going to close this one, just pushed some documentation updates following @johnlane's comment. That works just fine in a new MM v4 generated site.

Please, don't hesitate to reopen if you're still experimenting problems following the docs.

markets avatar Jan 29 '24 20:01 markets