Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aio: api page code snippets should be wrapped in <aio-code> #16246

@sjtrimble

Description

@sjtrimble

The API template does not render code blocks with the doc viewer's <aio-code> tags as happens when guide authors write <code-example> and <code-tabs>.

Therefore, API code snippets are not pretty-printed and rendered as they are in the guide pages. The likely solution is for dgeni to transform those snippets appropriately.

Tangentially, what would dgeni do if an author used backtick markdown inside a guide page rather than the prescribed <code-example> (or <aio-code>) technique?

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
Unable to style api page code snippets

Expected behavior
To use <aio-code> component for consistency across the site

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions