middleman / middleman-syntax

Code syntax highlighting plugin via Rouge for Middleman
https://middlemanapp.com
MIT License
179 stars 57 forks source link

Instructions for CSS are incorrect for Middleman 4 #70

Closed andy-twosticks closed 6 months ago

andy-twosticks commented 7 years ago

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

johnlane commented 6 years ago

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

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.

agbodike commented 5 years ago

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.

markets commented 6 months ago

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.