Skip to content

Commit 866e35b

Browse files
committed
add default logic for reportUnsupportedHtmlElements to TSDocConfiguration
1 parent 2b81f3f commit 866e35b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tsdoc/src/configuration/TSDocConfiguration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export class TSDocConfiguration {
4141
this._supportedTagDefinitions.clear();
4242
this._validation.ignoreUndefinedTags = false;
4343
this._validation.reportUnsupportedTags = false;
44+
this._validation.reportUnsupportedHtmlElements = false;
4445
this._supportedHtmlElements.clear();
4546

4647
if (!noStandardTags) {
@@ -197,6 +198,7 @@ export class TSDocConfiguration {
197198
*/
198199
public setSupportedHtmlElements(htmlTags: string[]): void {
199200
this._supportedHtmlElements.clear();
201+
this._validation.reportUnsupportedHtmlElements = true;
200202
for (const htmlTag of htmlTags) {
201203
this._supportedHtmlElements.add(htmlTag);
202204
}

0 commit comments

Comments
 (0)