mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
don't add comment node to the nodelist
This commit is contained in:
@@ -58,6 +58,9 @@ module Liquid
|
||||
return yield tag_name, markup
|
||||
end
|
||||
new_tag = tag.parse(tag_name, markup, tokenizer, parse_context)
|
||||
|
||||
next if new_tag.is_a?(Comment)
|
||||
|
||||
@blank &&= new_tag.blank?
|
||||
@nodelist << new_tag
|
||||
end
|
||||
@@ -153,6 +156,9 @@ module Liquid
|
||||
return yield tag_name, markup
|
||||
end
|
||||
new_tag = tag.parse(tag_name, markup, tokenizer, parse_context)
|
||||
|
||||
next if new_tag.is_a?(Comment)
|
||||
|
||||
@blank &&= new_tag.blank?
|
||||
@nodelist << new_tag
|
||||
when token.start_with?(VARSTART)
|
||||
|
||||
Reference in New Issue
Block a user