Make icon plugin more strict (#33562)

This commit is contained in:
Franck Nijhof 2024-07-04 09:57:10 +02:00 committed by GitHub
parent 69d098bce1
commit 77d6816045
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ module Jekyll
#{args}
Valid syntax:
{% icon "<icon>" %}
{% icon "<icon-set>:<icon-name>" %}
MSG
end
end
@ -24,7 +24,7 @@ module Jekyll
private
SYNTAX = %r!^"(.+?)"$!.freeze
SYNTAX = %r!^"([a-z0-9]+(?:-[a-z0-9]+)*:[a-z0-9]+(?:-[a-z0-9]+)*)"$!.freeze
end
end
end

View File

@ -112,7 +112,7 @@ In [sections view](/dashboards/sections/), you can resize cards. Follow these st
If you previously [resized](#resizing-a-card) a card in the [sections view](/dashboards/sections/), and you don't like the new size, you can revert back to the card's default size. Follow these steps:
1. On the **Layout** tab, select the {% icon "mdi-restore" %} icon.
1. On the **Layout** tab, select the {% icon "mdi:restore" %} icon.
![Screenshot of the Layout tab in the card dialog](/images/dashboards/card_resize.png)
2. Select **Save**.