mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| add-image-dimensions.js | ||
| add-image-dimensions.spec.js | ||
| auto-link-code.js | ||
| auto-link-code.spec.js | ||
| autolink-headings.js | ||
| autolink-headings.spec.js | ||
| h1-checker.js | ||
| h1-checker.spec.js | ||