angular-docs-cn/aio/tools/transforms/angular-base-package/post-processors
George Kalpakas a938849148 fix(docs-infra): apply custom `autoLinkCode` filters to single-word `<code>` elements (#41709)
Previously, the `autoLinkCode` Dgeni post-processor would not apply the
custom filters when matching the whole contents of a `<code>` element.
This meant that custom filters would not be applied to single-word
`<code>` elements.

You can see occurrences of this issue in the following sections of the
"Reactive forms" guide:
- [Creating nested form groups][1]
  (look for `street, city, state, and zip controls`)
- [Using the FormBuilder service to generate controls][2]
  (look for `group method`)

This commit fixes this by also applying the custom filters when
processing the whole contents of a `<code>` element.

This commit also updates the `filterPipes` custom filter to allow
matching a pipe's name in a single-word `<code>` element (where there is
no preceeding `|` character).

[1]: https://v10.angular.io/guide/reactive-forms#creating-nested-form-groups
[2]: https://v10.angular.io/guide/reactive-forms#using-the-formbuilder-service-to-generate-controls

PR Close #41709
2021-04-26 10:59:08 -07:00
..
add-image-dimensions.js refactor(docs-infra): refactors `addImageDimensionsImpl` (#37046) 2020-05-14 10:48:01 -07: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): apply custom `autoLinkCode` filters to single-word `<code>` elements (#41709) 2021-04-26 10:59:08 -07:00
auto-link-code.spec.js fix(docs-infra): apply custom `autoLinkCode` filters to single-word `<code>` elements (#41709) 2021-04-26 10:59:08 -07: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