angular/aio/tools/transforms/angular-base-package
George Kalpakas de19b8bb88 fix(docs-infra): do not process generated nodes for auto-linking (#41709)
While generating the docs, when a `<code>` element is inspected for
auto-linking, the `autoLinkCode` Dgeni post-processor will break its
contents up into words and generate text nodes for those words that
should not be auto-linked.

Previously, our text node visitor would visit these generated text nodes
and try to auto-link them too. As a result, it would unnecessarily
process nodes that had already been checked (and could potentially
generate links that would otherwise be ignored).

You can see an occurrence of this issue in the
[Create the product list][1] section of the
"Getting started with Angular" tutorial (look for `<a>`).

This commit fixes this by ensuring the visitor will skip the current
node and any nodes generated by `autoLinkCode`.

[1]: https://v11.angular.io/start#create-the-product-list

PR Close #41709
2021-04-26 10:59:07 -07:00
..
inline-tag-defs/custom-search-defs build(docs-infra): remove {@searchKeywords} from content when rendering (#37132) 2020-05-15 10:04:45 -07:00
post-processors fix(docs-infra): do not process generated nodes for auto-linking (#41709) 2021-04-26 10:59:07 -07:00
processors build(docs-infra): store search dictionary as a string (#41447) 2021-04-07 13:51:08 -07:00
readers build(aio): refactor dgeni packages 2017-04-23 22:50:33 +01:00
rendering build(docs-infra): include directives etc in class descendants lists (#25768) 2018-10-01 09:36:33 -07:00
services build: update several dependencies (#41434) 2021-04-12 16:46:29 -07:00
ignore-words.json refactor(docs-infra): include more info in search index data (#41368) 2021-04-01 12:02:37 -07:00
index.js build(docs-infra): tidy up the generateKeywords processor (#41447) 2021-04-07 13:51:08 -07:00