Optimize and fix chucked code highlight

Thanks @isagalaev
isagalaev/highlight.js/issues/424 (Render codes line by line)