Skip to content

Commit

Permalink
Skip 'code' element (#38)
Browse files Browse the repository at this point in the history
Addresses #37
  • Loading branch information
onionhammer authored and jescalan committed Sep 4, 2018
1 parent c30061c commit 9c7021e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/collapseWhitespace.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const skipElements = ['script', 'style', 'pre', 'textarea']
const skipElements = ['script', 'style', 'pre', 'code', 'textarea']

module.exports = (node, options = {}) => {
// if it's an entirely empty node, either remove or collapse to a single space
Expand Down

0 comments on commit 9c7021e

Please sign in to comment.