fix(code): code highlighting not styled for typeit shortcode (#681)

This commit is contained in:
Cell
2026-01-05 14:58:52 +08:00
committed by GitHub
parent 43ecb1bdd0
commit fb300f2b16
4 changed files with 12 additions and 4 deletions
+9 -1
View File
@@ -150,7 +150,7 @@ function add(a, b) {
## Code block inside other blocks
> [!NOTE]-
> [!NOTE]+
>
> ```js {mode="classic"}
> function add(a, b) {
@@ -158,6 +158,14 @@ function add(a, b) {
> }
> ```
{{< typeit code=java >}}
public class HelloWorld {
public static void main(String []args) {
System.out.println("Hello World");
}
}
{{< /typeit >}}
{{< details "Code Block inside Details" >}}
```js {mode="classic"}