angular/adev/shared-docs/pipeline/shared/marked
Shuaib Hasan Akib 27e183330e fix(docs-infra): preserve shell class for multifile code blocks
The ExampleViewer component was extracting only innerHTML from code
blocks in multifile examples, which lost the shell class applied by
the formatCode function. This caused the $ prompt to not appear for
shell commands in multifile blocks even when language="shell" was set.

Modified the Snippet interface to track shell language state and
updated getCodeSnippetsFromMultifileWrapper and getStandaloneCodeSnippet
methods to preserve the shell class. Updated example-viewer template
to conditionally apply the shell class to the code wrapper element.

Fixes inconsistency between standalone and multifile shell code blocks.
2025-10-27 09:29:37 +01:00
..
extensions fix(docs-infra): preserve shell class for multifile code blocks 2025-10-27 09:29:37 +01:00
mermaid docs(docs-infra): share markdown rendering and highlighting code between api-gen and guides (#63357) 2025-08-25 15:33:55 -07:00
test docs: add alert about routelinkactive being a content query (#63829) 2025-09-16 15:15:24 +00:00
transformations docs(docs-infra): code style improvement and component update (#63557) 2025-09-15 15:02:24 +00:00
BUILD.bazel docs(docs-infra): remove dependency on html-entities (#63416) 2025-08-27 11:40:50 -07:00
helpers.mts docs(docs-infra): share markdown rendering and highlighting code between api-gen and guides (#63357) 2025-08-25 15:33:55 -07:00
hooks.mts docs(docs-infra): share markdown rendering and highlighting code between api-gen and guides (#63357) 2025-08-25 15:33:55 -07:00
parse.mts docs(docs-infra): share markdown rendering and highlighting code between api-gen and guides (#63357) 2025-08-25 15:33:55 -07:00
renderer.mts docs(docs-infra): highlight & parse api descriptions. (#63536) 2025-09-02 16:49:10 +00:00
state.mts docs(docs-infra): share markdown rendering and highlighting code between api-gen and guides (#63357) 2025-08-25 15:33:55 -07:00