format: apply repo prettier (3.8.1) to the folded skills tree
963 markdown files reformatted with the repository's pinned prettier so pnpm format:check covers the folded tree like every other repo file. The formatter's embedded-language pass also normalized code fences (TS semicolons, closed HTML tags in examples, lowercased CSS hex colors, one renumbered list that skipped an index). Alphanumeric token deltas vs the fold commit were audited file-by-file; all are formatter-equivalent markup normalizations plus the four sanitized skills.
This commit is contained in:
@@ -14,8 +14,8 @@ Specify language after opening backticks:
|
||||
````md
|
||||
```js
|
||||
export default {
|
||||
name: 'MyComponent'
|
||||
}
|
||||
name: 'MyComponent',
|
||||
};
|
||||
```
|
||||
````
|
||||
|
||||
@@ -61,10 +61,10 @@ Inline highlighting with comment:
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
msg: 'Highlighted!' // [!code highlight]
|
||||
}
|
||||
}
|
||||
}
|
||||
msg: 'Highlighted!', // [!code highlight]
|
||||
};
|
||||
},
|
||||
};
|
||||
```
|
||||
````
|
||||
|
||||
@@ -77,10 +77,10 @@ Blur other code and focus specific lines:
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
msg: 'Focused!' // [!code focus]
|
||||
}
|
||||
}
|
||||
}
|
||||
msg: 'Focused!', // [!code focus]
|
||||
};
|
||||
},
|
||||
};
|
||||
```
|
||||
````
|
||||
|
||||
@@ -116,11 +116,11 @@ Color lines as errors or warnings:
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
msg: 'Error', // [!code error]
|
||||
msg: 'Warning' // [!code warning]
|
||||
}
|
||||
}
|
||||
}
|
||||
msg: 'Error', // [!code error]
|
||||
msg: 'Warning', // [!code warning]
|
||||
};
|
||||
},
|
||||
};
|
||||
```
|
||||
````
|
||||
|
||||
@@ -132,9 +132,9 @@ Enable globally:
|
||||
// .vitepress/config.ts
|
||||
export default {
|
||||
markdown: {
|
||||
lineNumbers: true
|
||||
}
|
||||
}
|
||||
lineNumbers: true,
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
Per-block override:
|
||||
@@ -169,11 +169,15 @@ Tabbed code blocks:
|
||||
::: code-group
|
||||
|
||||
```js [JavaScript]
|
||||
export default { /* ... */ }
|
||||
export default {
|
||||
/* ... */
|
||||
};
|
||||
```
|
||||
|
||||
```ts [TypeScript]
|
||||
export default defineConfig({ /* ... */ })
|
||||
export default defineConfig({
|
||||
/* ... */
|
||||
});
|
||||
```
|
||||
|
||||
:::
|
||||
@@ -222,7 +226,7 @@ Add filename labels to code blocks:
|
||||
|
||||
````md
|
||||
```js [vite.config.js]
|
||||
export default defineConfig({})
|
||||
export default defineConfig({});
|
||||
```
|
||||
````
|
||||
|
||||
|
||||
Reference in New Issue
Block a user