docs: set syntax highlighting of code examples MD code blocks#59026
docs: set syntax highlighting of code examples MD code blocks#59026hawkgs wants to merge 1 commit intoangular:mainfrom
Conversation
f0bdac1 to
06a47a4
Compare
|
Deployed adev-preview for a8eb451 to: https://ng-dev-previews-fw--pr-angular-angular-59026-adev-prev-dffbuqen.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
packages/animations/browser/src/dsl/animation_timeline_builder.ts
Outdated
Show resolved
Hide resolved
06a47a4 to
106921f
Compare
|
Leaving a short list with changes after the latest push:
|
|
Looks like angular-ts is not loaded as a valid language and the build fails during the prerender pipeline. |
|
It should be |
|
Yeah, messed up the param at |
106921f to
afeeef1
Compare
Set the syntax highlighting based on the code examples' language.
afeeef1 to
a8eb451
Compare
josephperrott
left a comment
There was a problem hiding this comment.
LGTM
Reviewed-for: global-approvers
|
This PR was merged into the repository by commit 0513fbc. The changes were merged into the following branches: main, 19.0.x |
Set the syntax highlighting based on the code examples' language. PR Close #59026
… blocks There are some code blocks that slipped through the initial Regex-es. Related to angular#59026
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…r#59026) Set the syntax highlighting based on the code examples' language. PR Close angular#59026
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Currently, there are quite a few code examples in the API reference that don't have syntax highlighting. Some examples:
What is the new behavior?
By setting the syntax highlighting parameter of the Markdown code blocks, the examples are now displayed properly.
The change most likely also targets code snippets/examples that are not part of the API reference.
Does this PR introduce a breaking change?