chjj/marked — comment on commit ccfc53b4a32a0854b379789ad1459710675adb30
File: lib/marked.js line 278
By dvv:

I also have semi-issue here. Currently, token.text is not trimmed, and since it sits in pre, leading/trailing empty lines in markdown cause unpleasantly looking empty lines in rendered `pre`. Currently, I postprocess rendered output looking for `/

([\s\S]*?)<\/code><\/pre>/` and replacing caught content with its trimmed version.
I understand that empty lines should map to empty lines, but may be with an exclusion of leading/trailing empty lines in code blocks?
It's sufficiently to append `.trim()` here. What do you think?
Just reporting, --Vladimir