inline code syntax highlighting: marpit custom engine + css

This commit is contained in:
2026-04-22 13:15:19 +02:00
parent 79aaa14c29
commit 2680a745cf
5 changed files with 1966 additions and 7 deletions

View File

@@ -40,11 +40,13 @@ pre code {
color: inherit;
}
code {
background: #1a1a2e;
color: #d63384;
background: #0f0f23;
padding: 0.15em 0.4em;
border-radius: 4px;
font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
section code:not(.hljs) { color: #d63384 !important; }
section code.hljs { color: #f8f8f8 !important; }
a {
color: var(--color-highlight);
}
@@ -1281,8 +1283,7 @@ Steuert die Vorschau beim Teilen auf Mastodon, LinkedIn, Signal, MS Teams, Slack
![bg right:35%](./assets/demos/input-date.png)
```html
<label>Geburtsdatum</label>
<input type="date" />
Geburtsdatum <input type="date" />
```
| Teil | Bezeichnung |