thibaud frere commited on
Commit ·
a153fdf
1
Parent(s): 72cfb5a
update
Browse filesFiles changed (2)
40 unmodified lines4142434445464740 unmodified lines**Block**Affichage en bloc, voir l'exemple ci-dessous.<small className="muted">Example</small>```mdx40 unmodified lines41424344454647484940 unmodified lines**Block**$$\mathrm{Attention}(Q,K,V)=\mathrm{softmax}\!\left(\frac{QK^\top}{\sqrt{d_k}}\right) V$$<small className="muted">Example</small>```mdx
54 unmodified lines555657585960612 unmodified lines646566676869707154 unmodified lines/* Rehype-injected wrapper for non-Shiki pre blocks */.code-card { position: relative; }.code-card .code-copy {position: absolute; top: 6px; right: 6px; z-index: 3; padding: 6px 12px;}.code-card .code-copy svg { width: 16px; height: 16px; display: block; fill: currentColor; }.code-card pre { margin: 0; margin-bottom: var(--spacing-1);}2 unmodified lines.code-card::after {content: attr(data-language);position: absolute;top: 8px; /* default, aligns with copy button */right: 8px;font-size: 10px;line-height: 1;text-transform: uppercase;54 unmodified lines555657585960612 unmodified lines646566676869707154 unmodified lines/* Rehype-injected wrapper for non-Shiki pre blocks */.code-card { position: relative; }.code-card .code-copy {position: absolute; top: 6px; right: 6px; z-index: 3; padding: 6px 12px; border: none;}.code-card .code-copy svg { width: 16px; height: 16px; display: block; fill: currentColor; }.code-card pre { margin: 0; margin-bottom: var(--spacing-1);}2 unmodified lines.code-card::after {content: attr(data-language);position: absolute;top: 8px;right: 56px; /* leave room for copy button */font-size: 10px;line-height: 1;text-transform: uppercase;
app/src/content/chapters/available-blocks.mdx+3-1
app/src/styles/components/_code.css+3-3