@traptitech/traq-markdown-it
Advanced tools
Comparing version 6.2.1 to 6.3.0
@@ -18,4 +18,13 @@ import { User, Channel, UserGroup, Stamp } from '@traptitech/traq'; | ||
getUserByName(name: string): Readonly<Pick<User, 'iconFileId'>> | undefined; | ||
/** | ||
* href属性にセットされるので`javascript:`などのXSSに注意すること | ||
*/ | ||
generateUserHref(id: string): string; | ||
/** | ||
* href属性にセットされるので`javascript:`などのXSSに注意すること | ||
*/ | ||
generateUserGroupHref(id: string): string; | ||
/** | ||
* href属性にセットされるので`javascript:`などのXSSに注意すること | ||
*/ | ||
generateChannelHref(id: string): string; | ||
@@ -22,0 +31,0 @@ } |
@@ -728,2 +728,3 @@ "use strict"; | ||
setRendererRule() { | ||
this.md.linkify.tlds(["app", "dev", "games", "tech", "show"], true); | ||
this.md.block.State.prototype.skipEmptyLines = function skipEmptyLines(from) { | ||
@@ -730,0 +731,0 @@ for (let max = this.lineMax; from < max; from++) { |
{ | ||
"name": "@traptitech/traq-markdown-it", | ||
"version": "6.2.1", | ||
"version": "6.3.0", | ||
"description": "Markdown parser for traQ.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -12,5 +12,14 @@ import type { User, Channel, UserGroup, Stamp } from '@traptitech/traq' | ||
getUserByName(name: string): Readonly<Pick<User, 'iconFileId'>> | undefined | ||
/** | ||
* href属性にセットされるので`javascript:`などのXSSに注意すること | ||
*/ | ||
generateUserHref(id: string): string | ||
/** | ||
* href属性にセットされるので`javascript:`などのXSSに注意すること | ||
*/ | ||
generateUserGroupHref(id: string): string | ||
/** | ||
* href属性にセットされるので`javascript:`などのXSSに注意すること | ||
*/ | ||
generateChannelHref(id: string): string | ||
} |
@@ -90,2 +90,3 @@ import MarkdownIt from 'markdown-it' | ||
private setRendererRule(): void { | ||
this.md.linkify.tlds(['app', 'dev', 'games', 'tech', 'show'], true) | ||
this.md.block.State.prototype.skipEmptyLines = function skipEmptyLines( | ||
@@ -92,0 +93,0 @@ from: number |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
228151
3744