mirror of
https://github.com/SharpeTronics/jekyll-spaceship.git
synced 2025-12-20 00:01:55 -05:00
fix: liquid filter of percent form broken (#21)
This commit is contained in:
parent
c59b4e67f5
commit
c98006df64
@ -160,7 +160,7 @@ module Jekyll::Spaceship
|
|||||||
elsif type == :math
|
elsif type == :math
|
||||||
regex = /(((?<!\\)\${1,2})[^\n]*?\1)/
|
regex = /(((?<!\\)\${1,2})[^\n]*?\1)/
|
||||||
elsif type == :liquid_filter
|
elsif type == :liquid_filter
|
||||||
regex = /((?<!\\)\{\{[^\n]*?\}\})/
|
regex = /((?<!\\)((\{\{[^\n]*?\}\})|(\{%[^\n]*?%\})))/
|
||||||
end
|
end
|
||||||
next if regex.nil?
|
next if regex.nil?
|
||||||
content.scan(regex) do |match_data|
|
content.scan(regex) do |match_data|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user