mirror of
https://github.com/tabler/tabler.git
synced 2026-08-24 11:54:23 +04:00
jekyll-example fix
This commit is contained in:
@@ -29,7 +29,7 @@ module Jekyll
|
|||||||
class ExampleBlock < Liquid::Block
|
class ExampleBlock < Liquid::Block
|
||||||
include Liquid::StandardFilters
|
include Liquid::StandardFilters
|
||||||
|
|
||||||
SYNTAX = /^([a-zA-Z0-9.+#-]+)((\s+[\w-]+(=((\w|[0-9_-])+|"([0-9]+\s)*[0-9]+"))?)*)$/
|
SYNTAX = /^([a-zA-Z0-9.+#-]+)((\s+[\w-]+(=((\w|[0-9_-])+|"(\w|[0-9_-]|\s)+"))?)*)$/
|
||||||
|
|
||||||
def initialize(tag_name, markup, tokens)
|
def initialize(tag_name, markup, tokens)
|
||||||
super
|
super
|
||||||
@@ -47,7 +47,6 @@ module Jekyll
|
|||||||
# If a quoted list, convert to array
|
# If a quoted list, convert to array
|
||||||
if value && value.include?("\"")
|
if value && value.include?("\"")
|
||||||
value.gsub!(/"/, "")
|
value.gsub!(/"/, "")
|
||||||
value = value.split
|
|
||||||
end
|
end
|
||||||
@options[key.to_sym] = value || true
|
@options[key.to_sym] = value || true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user