Repository navigation
Commit 05da5bc
committed
Use jsonc language tag for JSON examples containing comments
Three code blocks are tagged ```json but contain comments, which JSON
does not permit, so the examples cannot be parsed or copied as-is:
- copilot/reference/hooks-reference.md uses a /* hook entries */ placeholder
- copilot/how-tos/copilot-sdk/troubleshooting/mcp-debugging.md uses a
leading // comment
- copilot/reference/copilot-usage-metrics/lines-of-code-metrics.md uses
three trailing // comments
Retag these fences as ```jsonc, matching the convention already used
elsewhere in the content directory for JSON with comments (for example
the dev container examples in codespaces/). The renderer registers
'jsonc' as an alias of 'json' in src/content-render/unified/processor.ts,
so highlighting on docs.github.com is unchanged while the fences also
render correctly on github.com.
The comments are left in place; only the language tags change.1 parent 27965d1 commit 05da5bc
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- content/copilot
- how-tos/copilot-sdk/troubleshooting
- reference
- copilot-usage-metrics
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
| 844 | + | |
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
| |||
0 commit comments