Skip to content

Commit

Permalink
fix(ci): add markdownlint custom rule for plain code fences
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkarRuikar committed Jul 26, 2024
1 parent 4f35a82 commit aa557c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@
"searchPattern": "/(\\[[^\\]]*?\\]\\(([^\\)\\n]|\\([^\\)\\n]\\)|\\s[\"'])+?)(\\n|\\s|[,:][\\s\\n])/gm",
"searchScope": "text",
},
{
"name": "text-code-fence",
"message": "Use 'plain' tag",
"searchPattern": "/(^ *```)(text|none|unix)/gm",
"replace": "$1plain",
"searchScope": "text",
},
],
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ Using a tab character mimics standard pretty-print appearance:
console.log(JSON.stringify({ uno: 1, dos: 2 }, null, "\t"));
/*
{
"uno": 1,
"dos": 2
"uno": 1,
"dos": 2
}
*/
```
Expand Down

0 comments on commit aa557c4

Please sign in to comment.