Fixed actual problem, and reverted past changes. The problem was the characters that define section breaks (when passing to pygments code highlighter) were commented out only in languages that include single line comments (so not css or html). I added code that will use the multiline comment style when single line comments aren't available.