You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an author, I want to be able to use icons in my Markdown without having to know how to install icon fonts or libraries and add them to my site's assets or call them with inline HTML.
Suggested Implementation
Add an image link render hook for Markdown images whose alt text as the icon: prefix, like:
![icon:name](library"label text")
{ ... }
The text after the icon represents the icon's name. The library is optional and indicates which icon library to search for that name in. The label text, if included, marks the icon as non-decoration and adds the specified label.
Details
The markup should:
Support presets, where the preset dot-path is specified instead of the library with the preset:dot-path syntax or as an attribute
Support registering any known library automatically and registering custom libraries in the configuration. When no library is specified, or is specified as a dot (.), we should use the default library from Shoelace.
Be integrated with other markup that uses Shoelace icons, so the registration/handling for icons is generic across markup
Add a footer note about used icons and their license and update a list of used icons that can be rendered anywhere in the site as needed (like a typography page). These should be configurable.
In this first iteration, we don't need to make icons available without an active internet connection. In the future, we should define a pattern for icon modules that vendor the icons with their schemas etc so they can be used more reliably. In this first iteration, we don't need to verify that the icon exists at parse/build time.
The text was updated successfully, but these errors were encountered:
Suggested Implementation
Add an image link render hook for Markdown images whose alt text as the
icon:
prefix, like:The text after the icon represents the icon's name. The
library
is optional and indicates which icon library to search for that name in. Thelabel text
, if included, marks the icon as non-decoration and adds the specified label.Details
The markup should:
preset:dot-path
syntax or as an attribute.
), we should use the default library from Shoelace.In this first iteration, we don't need to make icons available without an active internet connection. In the future, we should define a pattern for icon modules that vendor the icons with their schemas etc so they can be used more reliably. In this first iteration, we don't need to verify that the icon exists at parse/build time.
The text was updated successfully, but these errors were encountered: