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.1.6 to 6.1.7

57

dist/index.js

@@ -8,19 +8,16 @@ var __create = Object.create;

var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __export = (target, all) => {
__markAsModule(target);
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __reExport = (target, module2, desc) => {
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
for (let key of __getOwnPropNames(module2))
if (!__hasOwnProp.call(target, key) && key !== "default")
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return target;
return to;
};
var __toModule = (module2) => {
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {

@@ -32,3 +29,4 @@ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);

// src/index.ts
__export(exports, {
var src_exports = {};
__export(src_exports, {
animeEffectSet: () => animeEffectSet,

@@ -46,10 +44,11 @@ createHighlightFunc: () => createHighlightFunc,

});
module.exports = __toCommonJS(src_exports);
// src/traQMarkdownIt.ts
var import_markdown_it = __toModule(require("markdown-it"));
var import_markdown_it_mark = __toModule(require("markdown-it-mark"));
var import_markdown_it_spoiler = __toModule(require("@traptitech/markdown-it-spoiler"));
var import_markdown_it = __toESM(require("markdown-it"));
var import_markdown_it_mark = __toESM(require("markdown-it-mark"));
var import_markdown_it_spoiler = __toESM(require("@traptitech/markdown-it-spoiler"));
// src/stamp.ts
var import_markdown_it_regexp = __toModule(require("@traptitech/markdown-it-regexp"));
var import_markdown_it_regexp = __toESM(require("@traptitech/markdown-it-regexp"));

@@ -192,3 +191,3 @@ // src/util.ts

// src/json.ts
var import_markdown_it_json = __toModule(require("markdown-it-json"));
var import_markdown_it_json = __toESM(require("markdown-it-json"));
var store2;

@@ -272,9 +271,9 @@ var isStructData = (data) => {

// src/traQMarkdownIt.ts
var import_markdown_it_katex = __toModule(require("@traptitech/markdown-it-katex"));
var import_katex = __toModule(require("katex"));
var import_markdown_it_link_attributes = __toModule(require("markdown-it-link-attributes"));
var import_markdown_it_image_filter = __toModule(require("markdown-it-image-filter"));
var import_markdown_it_katex = __toESM(require("@traptitech/markdown-it-katex"));
var import_katex = __toESM(require("katex"));
var import_markdown_it_link_attributes = __toESM(require("markdown-it-link-attributes"));
var import_markdown_it_image_filter = __toESM(require("markdown-it-image-filter"));
// src/highlight.ts
var import_highlight = __toModule(require("highlight.js"));
var import_highlight = __toESM(require("highlight.js"));

@@ -586,3 +585,3 @@ // src/default/language_subset.ts

// src/InlineRenderer.ts
var import_renderer = __toModule(require("markdown-it/lib/renderer.js"));
var import_renderer = __toESM(require("markdown-it/lib/renderer.js"));
var InlineRenderer = class extends import_renderer.default {

@@ -733,8 +732,8 @@ constructor() {

// src/index.ts
var import_markdown_it_mark2 = __toModule(require("markdown-it-mark"));
var import_markdown_it_spoiler2 = __toModule(require("@traptitech/markdown-it-spoiler"));
var import_markdown_it_katex2 = __toModule(require("@traptitech/markdown-it-katex"));
var import_markdown_it_mark2 = __toESM(require("markdown-it-mark"));
var import_markdown_it_spoiler2 = __toESM(require("@traptitech/markdown-it-spoiler"));
var import_markdown_it_katex2 = __toESM(require("@traptitech/markdown-it-katex"));
// src/container.ts
var import_markdown_it_container = __toModule(require("markdown-it-container"));
var import_markdown_it_container = __toESM(require("markdown-it-container"));
var defaultLabels = ["success", "info", "warning", "danger"];

@@ -748,3 +747,3 @@ var useContainer = (md, labels = defaultLabels) => {

// src/stampCss.ts
var import_markdown_it_regexp2 = __toModule(require("@traptitech/markdown-it-regexp"));
var import_markdown_it_regexp2 = __toESM(require("@traptitech/markdown-it-regexp"));
var stampRegExp2 = /:(?:[a-zA-Z0-9+_-]{1,32}|@[a-zA-Z0-9_-]+)(?:\.[\w+-.]+)?:/;

@@ -757,3 +756,3 @@ var stampRegExpWithSize = /:(?:[a-zA-Z0-9+_-]{1,32}|@[a-zA-Z0-9_-]+)(?:\.[\w+-.]+)?[:;]/;

var renderStamp2 = (wrappedName, name, size) => {
const className = `e_${name.replace(/\+/g, "_-plus-_")}`;
const className = `e_${name.replaceAll("+", "_-plus-_")}`;
return `<i class="emoji s${size} ${className}" title="${wrappedName}">${wrappedName}</i>`;

@@ -760,0 +759,0 @@ };

{
"name": "@traptitech/traq-markdown-it",
"version": "6.1.6",
"version": "6.1.7",
"description": "Markdown parser for traQ.",

@@ -50,3 +50,3 @@ "main": "./dist/index.js",

"katex": "^0.15.1",
"markdown-it": "^12.2.0",
"markdown-it": "^13.0.0",
"markdown-it-container": "^3.0.0",

@@ -61,3 +61,3 @@ "markdown-it-image-filter": "^1.1.0",

"@types/jest": "^27.0.2",
"@types/katex": "^0.11.1",
"@types/katex": "^0.14.0",
"@types/markdown-it": "12.2.3",

@@ -64,0 +64,0 @@ "@typescript-eslint/eslint-plugin": "^5.3.1",

@@ -17,3 +17,3 @@ import type MarkdownIt from 'markdown-it'

const renderStamp = (wrappedName: string, name: string, size: number) => {
const className = `e_${name.replace(/\+/g, '_-plus-_')}`
const className = `e_${name.replaceAll('+', '_-plus-_')}`
return `<i class="emoji s${size} ${className}" title="${wrappedName}">${wrappedName}</i>`

@@ -20,0 +20,0 @@ }

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

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