Socket
Socket
Sign inDemoInstall

@textlint/markdown-to-ast

Package Overview
Dependencies
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textlint/markdown-to-ast - npm Package Compare versions

Comparing version 13.0.4 to 13.0.5

1

lib/src/index.js

@@ -38,2 +38,3 @@ "use strict";

else {
// @ts-expect-error: TxtNodeType + Markdown extension type
node.type = replacedType;

@@ -40,0 +41,0 @@ }

56

lib/src/mapping/markdown-syntax-map.d.ts
import { ASTNodeTypes } from "@textlint/ast-node-types";
export declare const SyntaxMap: {
root: ASTNodeTypes;
paragraph: ASTNodeTypes;
blockquote: ASTNodeTypes;
listItem: ASTNodeTypes;
list: ASTNodeTypes;
Bullet: string;
heading: ASTNodeTypes;
code: ASTNodeTypes;
HtmlBlock: ASTNodeTypes;
thematicBreak: ASTNodeTypes;
text: ASTNodeTypes;
break: ASTNodeTypes;
emphasis: ASTNodeTypes;
strong: ASTNodeTypes;
html: ASTNodeTypes;
link: ASTNodeTypes;
image: ASTNodeTypes;
inlineCode: ASTNodeTypes;
delete: ASTNodeTypes;
yaml: string;
table: string;
tableRow: string;
tableCell: string;
linkReference: string;
imageReference: string;
footnoteReference: string;
definition: string;
readonly root: ASTNodeTypes.Document;
readonly paragraph: ASTNodeTypes.Paragraph;
readonly blockquote: ASTNodeTypes.BlockQuote;
readonly listItem: ASTNodeTypes.ListItem;
readonly list: ASTNodeTypes.List;
readonly Bullet: "Bullet";
readonly heading: ASTNodeTypes.Header;
readonly code: ASTNodeTypes.CodeBlock;
readonly HtmlBlock: ASTNodeTypes.HtmlBlock;
readonly thematicBreak: ASTNodeTypes.HorizontalRule;
readonly text: ASTNodeTypes.Str;
readonly break: ASTNodeTypes.Break;
readonly emphasis: ASTNodeTypes.Emphasis;
readonly strong: ASTNodeTypes.Strong;
readonly html: ASTNodeTypes.Html;
readonly link: ASTNodeTypes.Link;
readonly image: ASTNodeTypes.Image;
readonly inlineCode: ASTNodeTypes.Code;
readonly delete: ASTNodeTypes.Delete;
readonly yaml: "Yaml";
readonly table: "Table";
readonly tableRow: "TableRow";
readonly tableCell: "TableCell";
readonly linkReference: "LinkReference";
readonly imageReference: "ImageReference";
readonly footnoteReference: "FootnoteReference";
readonly definition: "Definition";
/**
* @deprecated
*/
ReferenceDef: ASTNodeTypes;
readonly ReferenceDef: ASTNodeTypes.ReferenceDef;
};
//# sourceMappingURL=markdown-syntax-map.d.ts.map

@@ -32,2 +32,3 @@ import { SyntaxMap } from "./mapping/markdown-syntax-map";

else {
// @ts-expect-error: TxtNodeType + Markdown extension type
node.type = replacedType;

@@ -34,0 +35,0 @@ }

import { ASTNodeTypes } from "@textlint/ast-node-types";
export declare const SyntaxMap: {
root: ASTNodeTypes;
paragraph: ASTNodeTypes;
blockquote: ASTNodeTypes;
listItem: ASTNodeTypes;
list: ASTNodeTypes;
Bullet: string;
heading: ASTNodeTypes;
code: ASTNodeTypes;
HtmlBlock: ASTNodeTypes;
thematicBreak: ASTNodeTypes;
text: ASTNodeTypes;
break: ASTNodeTypes;
emphasis: ASTNodeTypes;
strong: ASTNodeTypes;
html: ASTNodeTypes;
link: ASTNodeTypes;
image: ASTNodeTypes;
inlineCode: ASTNodeTypes;
delete: ASTNodeTypes;
yaml: string;
table: string;
tableRow: string;
tableCell: string;
linkReference: string;
imageReference: string;
footnoteReference: string;
definition: string;
readonly root: ASTNodeTypes.Document;
readonly paragraph: ASTNodeTypes.Paragraph;
readonly blockquote: ASTNodeTypes.BlockQuote;
readonly listItem: ASTNodeTypes.ListItem;
readonly list: ASTNodeTypes.List;
readonly Bullet: "Bullet";
readonly heading: ASTNodeTypes.Header;
readonly code: ASTNodeTypes.CodeBlock;
readonly HtmlBlock: ASTNodeTypes.HtmlBlock;
readonly thematicBreak: ASTNodeTypes.HorizontalRule;
readonly text: ASTNodeTypes.Str;
readonly break: ASTNodeTypes.Break;
readonly emphasis: ASTNodeTypes.Emphasis;
readonly strong: ASTNodeTypes.Strong;
readonly html: ASTNodeTypes.Html;
readonly link: ASTNodeTypes.Link;
readonly image: ASTNodeTypes.Image;
readonly inlineCode: ASTNodeTypes.Code;
readonly delete: ASTNodeTypes.Delete;
readonly yaml: "Yaml";
readonly table: "Table";
readonly tableRow: "TableRow";
readonly tableCell: "TableCell";
readonly linkReference: "LinkReference";
readonly imageReference: "ImageReference";
readonly footnoteReference: "FootnoteReference";
readonly definition: "Definition";
/**
* @deprecated
*/
ReferenceDef: ASTNodeTypes;
readonly ReferenceDef: ASTNodeTypes.ReferenceDef;
};
//# sourceMappingURL=markdown-syntax-map.d.ts.map
{
"name": "@textlint/markdown-to-ast",
"version": "13.0.4",
"version": "13.0.5",
"description": "Parse Markdown to AST with location info.",

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

"dependencies": {
"@textlint/ast-node-types": "^13.0.4",
"@textlint/ast-node-types": "^13.0.5",
"debug": "^4.3.4",

@@ -50,3 +50,3 @@ "mdast-util-gfm-autolink-literal": "^0.1.3",

"devDependencies": {
"@textlint/ast-tester": "^13.0.4",
"@textlint/ast-tester": "^13.0.5",
"@types/mocha": "^9.1.1",

@@ -68,3 +68,3 @@ "@types/node": "^18.11.18",

},
"gitHead": "3da4e6875ddacded095e934f1671707c9bcc35fb"
"gitHead": "4251c9e29f84eba59ba6cba343d7552b3b9a4ed9"
}

@@ -34,2 +34,3 @@ import { SyntaxMap } from "./mapping/markdown-syntax-map";

} else {
// @ts-expect-error: TxtNodeType + Markdown extension type
node.type = replacedType;

@@ -36,0 +37,0 @@ }

@@ -40,2 +40,2 @@ // LICENSE : MIT

ReferenceDef: ASTNodeTypes.ReferenceDef
};
} as const;

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

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