Skip to content

Commit

Permalink
Fix code-block directive
Browse files Browse the repository at this point in the history
  • Loading branch information
drwpow committed Nov 25, 2024
1 parent 46c4add commit f56ed1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions www/src/pages/docs/cli/lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,16 @@ export default defineConfig({
{
matches: [
// example 1: require all color.base tokens to be a ramp with 100–900 values
{ match: ["color.base.*"], requiredTokens: ["100", "200", "300", "400", "500", "600", "700", "800", "900"] },
{
match: ["color.base.*"],
requiredTokens: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
},

// example 2: require all text.* and bg.* tokens to have specific states
{ match: ["text.*", "bg.*"], requiredGroups: ["action", "disabled", "error", "warn", "success"] },
{
match: ["text.*", "bg.*"],
requiredGroups: ["action", "disabled", "error", "warn", "success"],
},
],
},
],
Expand Down
2 changes: 1 addition & 1 deletion www/src/plugins/remark-vitepress.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function remarkVitepress() {
)
.join('')}</div>`,
},
...children.map((node, i) => ({
...codeBlocks.map((node, i) => ({
type: 'paragraph',
data: {
hName: 'div',
Expand Down

0 comments on commit f56ed1f

Please sign in to comment.