diff --git a/docs/canary/examples/modifying-the-head.md b/docs/canary/examples/modifying-the-head.md
index c73ca71f..ba1d2d04 100644
--- a/docs/canary/examples/modifying-the-head.md
+++ b/docs/canary/examples/modifying-the-head.md
@@ -75,4 +75,5 @@ rendered.
The rendered page will only include the ``-tag with `"Other title"`.
-> ℹ️ The `
`-tag is automatically deduplicated, even without a `key` prop.
+> [info]: The ``-tag is automatically deduplicated, even without a `key`
+> prop.
diff --git a/docs/latest/concepts/ahead-of-time-builds.md b/docs/latest/concepts/ahead-of-time-builds.md
index e569f067..5ee4436c 100644
--- a/docs/latest/concepts/ahead-of-time-builds.md
+++ b/docs/latest/concepts/ahead-of-time-builds.md
@@ -30,9 +30,9 @@ This will create a `_fresh` folder in the project directory. That folder
contains the optimized assets and a `snapshot.json` file which includes some
metadata for Fresh.
-> ℹ️ The `_fresh` folder should not be committed to the repository. Add an entry
-> in the `.gitignore` file to ensure that it is not committed. Create that file
-> at the root of your git repository if not present.
+> [info]: The `_fresh` folder should not be committed to the repository. Add an
+> entry in the `.gitignore` file to ensure that it is not committed. Create that
+> file at the root of your git repository if not present.
>
> ```gitignore .gitignore
> # Ignore fresh build directory
diff --git a/docs/latest/concepts/routing.md b/docs/latest/concepts/routing.md
index 0e9f832d..7aa73fe5 100644
--- a/docs/latest/concepts/routing.md
+++ b/docs/latest/concepts/routing.md
@@ -97,8 +97,9 @@ a folder and use a different `_layout` file for each group.
└── contact.tsx
```
-> ℹ️ Be careful about routes in different groups which match to the same URL.
-> Such scenarios will lead to ambiguity as to which route file should be picked.
+> [warn]: Be careful about routes in different groups which match to the same
+> URL. Such scenarios will lead to ambiguity as to which route file should be
+> picked.
>
> ```txt Project structure
> └── routes
diff --git a/docs/latest/getting-started/create-a-route.md b/docs/latest/getting-started/create-a-route.md
index b5f6dec4..0356f5ff 100644
--- a/docs/latest/getting-started/create-a-route.md
+++ b/docs/latest/getting-started/create-a-route.md
@@ -29,7 +29,7 @@ this, one needs to create a new `routes/about.tsx` file. In this file, we can
declare a component that should be rendered every time a user visits the page.
This is done with JSX.
-> ℹ️ To learn more about JSX, you can read [this article][jsx] in the React
+> [info]: To learn more about JSX, you can read [this article][jsx] in the React
> documentation. Beware that Fresh does not use React, but rather
> [Preact][preact], a lighter weight virtual dom library that works similar to
> React.
diff --git a/www/routes/gfm.css.ts b/www/routes/gfm.css.ts
index 9f55c884..e35e4a65 100644
--- a/www/routes/gfm.css.ts
+++ b/www/routes/gfm.css.ts
@@ -37,6 +37,60 @@ const CSS = css`${gfm.CSS}
margin-left: 0
}
+.markdown-body .admonition {
+ padding: 1rem;
+}
+.markdown-body .admonition-header {
+ font-weight: bold;
+ display: flex;
+ align-items: center;
+ font-size: 1rem;
+ padding-bottom: .5rem;
+}
+.markdown-body .admonition .icon {
+ display: inline-flex;
+ margin-right: .25rem;
+ width: 1.2em;
+ height: 1.2em;
+}
+.markdown-body blockquote.warn {
+ border-color: #ff9100;
+ background: #F0900525;
+}
+
+.markdown-body .admonition .fenced-code {
+ margin-left: 0;
+ margin-right: 0;
+ border: 1px solid #d9d2d2;
+ border-radius: .5rem .5rem .25rem .25rem;
+}
+
+.markdown-body .admonition .highlight {
+ margin-bottom: 0;
+}
+
+.markdown-body .admonition.tip .admonition-header {
+ color: rgb(0, 148, 0);
+}
+.markdown-body .admonition.tip {
+ background-color: rgb(230, 246, 230);
+ border-color: rgb(0, 148, 0);
+}
+.markdown-body .admonition.info .admonition-header {
+ color: rgb(25 146 184);
+}
+.markdown-body .admonition.info {
+ background-color: rgb(238, 249, 253);
+ border-color: rgb(25 146 184);
+}
+.markdown-body .admonition.warn .admonition-header {
+ color: #dd6f04;
+}
+.markdown-body .admonition.warn {
+ background-color: #F0900525;
+ border-color: #ff9100;
+}
+
@media screen and (min-width: 768px) {
.markdown-body .fenced-code,
.markdown-body table {
diff --git a/www/static/icons.svg b/www/static/icons.svg
new file mode 100644
index 00000000..18a2e474
--- /dev/null
+++ b/www/static/icons.svg
@@ -0,0 +1,26 @@
+
+
+
diff --git a/www/utils/markdown.ts b/www/utils/markdown.ts
index 06e14c00..a1a3ec98 100644
--- a/www/utils/markdown.ts
+++ b/www/utils/markdown.ts
@@ -16,6 +16,8 @@ import { mangle } from "$marked-mangle";
Marked.marked.use(mangle());
+const ADMISSION_REG = /^