Skip to content

Commit

Permalink
docs: fix preset layout (#13377)
Browse files Browse the repository at this point in the history
- add newline after preset json
- declare preset json as json
  • Loading branch information
viceice committed Jan 5, 2022
1 parent da7092e commit 6d5f4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/docs/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export async function generatePresets(dist: string): Promise<void> {
} else {
logger.warn(`Preset ${name}:${preset} has no description`);
}
body += '\n```\n';
body += '\n```json\n';
body += JSON.stringify(value, null, 2);
body += '\n```\n';
body += '----\n';
body += '\n----\n';
if (body.includes('{{arg0}}')) {
header += '(`<arg0>`';
if (body.includes('{{arg1}}')) {
Expand Down

0 comments on commit 6d5f4a5

Please sign in to comment.