From 901db0e730a1c604b4000fd7bddfbb24bd831154 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 15 May 2020 10:00:51 +0100 Subject: [PATCH] build(docs-infra): remove `{@searchKeywords}` from content when rendering (#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 #37132 --- .../inline-tag-defs/custom-search-defs/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aio/tools/transforms/angular-base-package/inline-tag-defs/custom-search-defs/index.js b/aio/tools/transforms/angular-base-package/inline-tag-defs/custom-search-defs/index.js index 048853a370..8961d4de1b 100644 --- a/aio/tools/transforms/angular-base-package/inline-tag-defs/custom-search-defs/index.js +++ b/aio/tools/transforms/angular-base-package/inline-tag-defs/custom-search-defs/index.js @@ -1,9 +1,9 @@ module.exports = { name: 'searchKeywords', - description: 'A shorthand for creating elements with search terms. Usage: `{@searchKeywords term1 term2 termN }`', + description: + 'A shorthand for creating elements with search terms. Usage: `{@searchKeywords term1 term2 termN }`', handler: function(doc, tagName, tagDescription) { doc.searchKeywords = tagDescription; - return doc; + return ''; } }; - \ No newline at end of file