BBCoder.configure do
tag :i, as: :em
tag :b, as: :strong
tag :sub, singular: true do
%(#{singular? ? meta : content})
end
tag :sup, singular: true do
%(#{singular? ? meta : content})
end
tag :ul
tag :ol
tag :li, parents: [:ol, :ul]
tag :size do
%(#{content})
end
tag :url do
if meta.nil? || meta.empty?
%(#{content})
else
%(#{content})
end
end
tag :color do
%(#{content})
end
end