Merge pull request #15816 from mattlewis92/twitter-text-fixes

twitter-text: add missing auto link options
This commit is contained in:
Ryan Cavanaugh
2017-04-17 12:59:09 -07:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -72,6 +72,8 @@ export interface AutoLinkOptions {
htmlAttrs?: string;
invisibleTagAttrs?: string;
htmlEscapeNonEntities?: boolean;
targetBlank?: boolean;
suppressNoFollow?: boolean;
urlEntities?: UrlEntity[];
}
+1 -1
View File
@@ -41,7 +41,7 @@ result = twitter.autoLink(text);
result = twitter.autoLinkUsernamesOrLists(text);
result = twitter.autoLinkHashtags(text);
result = twitter.autoLinkCashtags(text);
result = twitter.autoLinkUrlsCustom(text);
result = twitter.autoLinkUrlsCustom(text, {targetBlank: true, suppressNoFollow: true});
const len: number = twitter.getTweetLength(text);