Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@traptitech/traq-markdown-it

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@traptitech/traq-markdown-it - npm Package Compare versions

Comparing version 6.2.1 to 6.3.0

9

dist/index.d.ts

@@ -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 @@ }

1

dist/index.js

@@ -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++) {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc