You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The strip plugin is too aggressive and targets innocent whitespace inside <pre> tags so I've updated strip.rb to exclude it:
# Replaces multiple newlines and whitespace
# between them with one newline
module Jekyll
class StripTag < Liquid::Block
def render(context)
super.gsub /(?<=\s)\n\s*\n(?![^<>]*<\/pre>)/, "\n"
end
end
end
Liquid::Template.register_tag('strip', Jekyll::StripTag)
The strip plugin is too aggressive and targets innocent whitespace inside
<pre>tags so I've updated strip.rb to exclude it: