From 149f3bd6b9cd39a5b4472e9899ed3c1a3197505b Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Sun, 13 Oct 2019 13:13:55 -0600 Subject: [PATCH] Add `@internal` as a synonym for `@hidden` Closes #364 --- src/lib/converter/plugins/CommentPlugin.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/converter/plugins/CommentPlugin.ts b/src/lib/converter/plugins/CommentPlugin.ts index 8305c6725..5249fcf71 100644 --- a/src/lib/converter/plugins/CommentPlugin.ts +++ b/src/lib/converter/plugins/CommentPlugin.ts @@ -110,7 +110,10 @@ export class CommentPlugin extends ConverterComponent { CommentPlugin.removeTags(comment, 'event'); } - if (comment.hasTag('hidden') || comment.hasTag('ignore')) { + if (comment.hasTag('hidden') + || comment.hasTag('ignore') + || (comment.hasTag('internal') && this.application.options.getCompilerOptions().stripInternal) + ) { if (!this.hidden) { this.hidden = []; }