angular-cn/aio/tools/transforms/angular-base-package/post-processors
Pete Bacon Darwin 06bca0cc66 fix(docs-infra): do not auto-link code in bash and json snippets (#33877)
Previously any code block, which was not marked with
`no-auto-link` css class would have its contents auto-linked to
API pages. Sometimes this results in false positive links being
generated.

This is problematic for triple backticked blocks, which cannot provide
the `no-auto-link` CSS class to prevent the linking.

This commit fixes the problem by allowing the auto-linker to be
configured not to auto-link code blocks that have been marked with an
"ignored" language. By default these are `bash` and `json`.

Triple backticked blocks are able to specify the language directly after
the first set of triple backticks.

Fixes #33859

PR Close #33877
2019-11-18 09:11:01 -08:00
..
add-image-dimensions.js build(aio): fail doc-gen if referenced images are missing 2017-07-18 11:45:05 +01:00
add-image-dimensions.spec.js style(aio): fix docs linting issues (#19702) 2017-11-01 15:24:46 -07:00
auto-link-code.js fix(docs-infra): do not auto-link code in bash and json snippets (#33877) 2019-11-18 09:11:01 -08:00
auto-link-code.spec.js fix(docs-infra): do not auto-link code in bash and json snippets (#33877) 2019-11-18 09:11:01 -08:00
autolink-headings.js build(aio): render heading anchors on the right 2018-02-27 18:32:32 -08:00
autolink-headings.spec.js build(aio): render heading anchors on the right 2018-02-27 18:32:32 -08:00
h1-checker.js build(aio): fix warning about missing `<h1>` 2017-07-31 13:40:07 -07:00
h1-checker.spec.js build(aio): fix warning about missing `<h1>` 2017-07-31 13:40:07 -07:00