Socket
Socket
Sign inDemoInstall

@textlint/markdown-to-ast

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 12.0.2 to 12.1.0

lib/tsconfig.tsbuildinfo

6

lib/src/index.js

@@ -13,3 +13,3 @@ "use strict";

const parse_markdown_1 = require("./parse-markdown");
const debug = debug_1.default("@textlint/markdown-to-ast");
const debug = (0, debug_1.default)("@textlint/markdown-to-ast");
/**

@@ -29,4 +29,4 @@ * parse markdown text and return ast mapped location info.

const textWithoutBOM = hasBOM ? text.slice(1) : text;
const ast = parse_markdown_1.parseMarkdown(textWithoutBOM);
traverse_1.default(ast).forEach(function (node) {
const ast = (0, parse_markdown_1.parseMarkdown)(textWithoutBOM);
(0, traverse_1.default)(ast).forEach(function (node) {
// eslint-disable-next-line no-invalid-this

@@ -33,0 +33,0 @@ if (this.notLeaf) {

@@ -19,3 +19,3 @@ "use strict";

const remark_footnotes_1 = __importDefault(require("remark-footnotes"));
const remark = unified_1.default().use(remark_parse_1.default).use(remark_frontmatter_1.default, ["yaml"]).use(remark_gfm_1.default).use(remark_footnotes_1.default, {
const remark = (0, unified_1.default)().use(remark_parse_1.default).use(remark_frontmatter_1.default, ["yaml"]).use(remark_gfm_1.default).use(remark_footnotes_1.default, {
inlineNotes: true

@@ -22,0 +22,0 @@ });

{
"name": "@textlint/markdown-to-ast",
"version": "12.0.2",
"version": "12.1.0",
"description": "Parse Markdown to AST with location info.",

@@ -38,4 +38,4 @@ "homepage": "https://github.com/textlint/textlint/tree/master/packages/@textlint/markdown-to-ast/",

"dependencies": {
"@textlint/ast-node-types": "^12.0.0",
"debug": "^4.3.2",
"@textlint/ast-node-types": "^12.1.0",
"debug": "^4.3.3",
"remark-footnotes": "^3.0.0",

@@ -46,8 +46,8 @@ "remark-frontmatter": "^3.0.0",

"traverse": "^0.6.6",
"unified": "^9.2.1"
"unified": "^9.2.2"
},
"devDependencies": {
"@textlint/ast-tester": "^12.0.2",
"@textlint/ast-tester": "^12.1.0",
"@types/mocha": "^8.2.3",
"@types/node": "^14.17.5",
"@types/node": "^14.17.34",
"@types/traverse": "^0.6.32",

@@ -60,5 +60,5 @@ "browserify": "^16.5.2",

"rimraf": "^3.0.2",
"ts-node": "^9.1.1",
"ts-node-test-register": "^9.0.1",
"typescript": "^4.2.4"
"ts-node": "^10.4.0",
"ts-node-test-register": "^10.0.0",
"typescript": "^4.4.4"
},

@@ -68,3 +68,3 @@ "publishConfig": {

},
"gitHead": "a7826f57258ee6bf68197d983bf5ec71c1b5f565"
"gitHead": "a393919e9c77078db47dc14d1baf3ab3a8e1bfcd"
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc