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
{{ message }}
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.
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 text was updated successfully, but these errors were encountered:
The strip plugin is too aggressive and targets innocent whitespace inside
<pre>
tags so I've updated strip.rb to exclude it:The text was updated successfully, but these errors were encountered: