* feat: Render external links inside frontmatter code as clickable anchors * fix: Enable alt-clicking inside frontmatter links #1538 * feat: make Internal links (WikiLinks [[...]]) navigable in a frontmatter block * feat: add success-admonition and danger-admonition
1.2 KiB
1.2 KiB
#level/intermediate
Silverbullet supports admonitions using GitHub syntax (note and warning).
Note
This is a note admonition
Warning
This is a warning admonition
danger This is a danger admonition
success This is a success admonition
Custom admonitions can be added in a Space Style using the following format:
/* Replace the keyword with a word or phrase of your choice */
.sb-admonition[admonition="keyword" i] {
.sb-admonition-type * { display: none; }
.sb-admonition-type::before {
width: var(--admonition-width) !important;
}
/* The icon can be a link or an embedded image like shown here */
--admonition-icon: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M19.5 12L14.5 17M19.5 12L14.5 7M19.5 12L9.5 12C7.83333 12 4.5 11 4.5 7" stroke="%231C274C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>');
/* The accent color */
--admonition-color: green;
}