UNPKG

1.68 kBJavaScriptView Raw
1// LICENSE : MIT
2"use strict";
3Object.defineProperty(exports, "__esModule", { value: true });
4exports.SyntaxMap = void 0;
5const ast_node_types_1 = require("@textlint/ast-node-types");
6exports.SyntaxMap = {
7 root: ast_node_types_1.ASTNodeTypes.Document,
8 paragraph: ast_node_types_1.ASTNodeTypes.Paragraph,
9 blockquote: ast_node_types_1.ASTNodeTypes.BlockQuote,
10 listItem: ast_node_types_1.ASTNodeTypes.ListItem,
11 list: ast_node_types_1.ASTNodeTypes.List,
12 Bullet: "Bullet", // no need?
13 heading: ast_node_types_1.ASTNodeTypes.Header,
14 code: ast_node_types_1.ASTNodeTypes.CodeBlock,
15 HtmlBlock: ast_node_types_1.ASTNodeTypes.HtmlBlock,
16 thematicBreak: ast_node_types_1.ASTNodeTypes.HorizontalRule,
17 // inline block
18 text: ast_node_types_1.ASTNodeTypes.Str,
19 break: ast_node_types_1.ASTNodeTypes.Break,
20 emphasis: ast_node_types_1.ASTNodeTypes.Emphasis,
21 strong: ast_node_types_1.ASTNodeTypes.Strong,
22 html: ast_node_types_1.ASTNodeTypes.Html,
23 link: ast_node_types_1.ASTNodeTypes.Link,
24 image: ast_node_types_1.ASTNodeTypes.Image,
25 inlineCode: ast_node_types_1.ASTNodeTypes.Code,
26 delete: ast_node_types_1.ASTNodeTypes.Delete,
27 // remark(markdown) extension
28 // Following type is not in @textlint/ast-node-types
29 yaml: "Yaml",
30 table: "Table",
31 tableRow: "TableRow",
32 tableCell: "TableCell",
33 linkReference: "LinkReference",
34 imageReference: "ImageReference",
35 footnoteReference: "FootnoteReference", // textlint@12+
36 definition: "Definition",
37 /**
38 * @deprecated
39 */
40 ReferenceDef: ast_node_types_1.ASTNodeTypes.ReferenceDef
41};
42//# sourceMappingURL=markdown-syntax-map.js.map
\No newline at end of file