Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 901db0e

Browse files
petebacondarwinkara
authored andcommitted
build(docs-infra): remove {@searchKeywords} from content when rendering (angular#37132)
Previously this inline-tag-def was returning the `doc` which is rendered to the output as `[Object Object]` - obviously not what is intended. Now it returns `''` which effectively strips the tag handler from the rendered output. PR Close angular#37132
1 parent 564ca9e commit 901db0e

File tree

1 file changed

+3
-3
lines changed
  • aio/tools/transforms/angular-base-package/inline-tag-defs/custom-search-defs

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module.exports = {
22
name: 'searchKeywords',
3-
description: 'A shorthand for creating elements with search terms. Usage: `{@searchKeywords term1 term2 termN }`',
3+
description:
4+
'A shorthand for creating elements with search terms. Usage: `{@searchKeywords term1 term2 termN }`',
45
handler: function(doc, tagName, tagDescription) {
56
doc.searchKeywords = tagDescription;
6-
return doc;
7+
return '';
78
}
89
};
9-

0 commit comments

Comments
 (0)