prettier-plugin-markdown-list-tabwidth 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Changelog.md CHANGED
@@ -1,3 +1,9 @@
1
+ # v1.1.0
2
+
3
+ ## Additions
4
+
5
+ - Added supprt for MDX and Remark.
6
+
1
7
  # v1.0.0
2
8
 
3
9
  - Initial Release
package/README.md CHANGED
@@ -22,6 +22,8 @@ Note: It does NOT replace the Markdown parser with that from Prettier v3.3.3, on
22
22
  If you do want it to replace the parser, import it as `prettier-plugin-markdown-list-tabwidth/replace-parser` instead of `prettier-plugin-markdown-list-tabwidth`.
23
23
  If you want it to export the Markdown language and options from Prettier v3.3.3 as well, import it as `prettier-plugin-markdown-list-tabwidth/full-replace`.
24
24
 
25
+ This plugin supports Markdown, MDX, and Remark.
26
+
25
27
  ## Installation
26
28
 
27
29
  Install Prettier if you haven't already:
@@ -11,6 +11,18 @@ export const parsers = {
11
11
  // Overrides the prettier Markdown parser's AST format.
12
12
  astFormat: "prettier-3.3.3-mdast",
13
13
  },
14
+ mdx: {
15
+ // Replaces the prettier MDX parser with the one from Prettier v3.3.3.
16
+ ...prettier333MarkdownPlugin.parsers.mdx,
17
+ // Overrides the prettier MDX parser's AST format.
18
+ astFormat: "prettier-3.3.3-mdast",
19
+ },
20
+ remark: {
21
+ // Replaces the prettier Remark parser with the one from Prettier v3.3.3.
22
+ ...prettier333MarkdownPlugin.parsers.remark,
23
+ // Overrides the prettier Remark parser's AST format.
24
+ astFormat: "prettier-3.3.3-mdast",
25
+ },
14
26
  };
15
27
  export const printers = {
16
28
  // Adds the prettier v3.3.3 Markdown printer.
@@ -7,6 +7,18 @@ export const parsers = {
7
7
  // Overrides the prettier Markdown parser's AST format.
8
8
  astFormat: "prettier-3.3.3-mdast",
9
9
  },
10
+ mdx: {
11
+ // Replaces the prettier MDX parser with the one from Prettier v3.3.3.
12
+ ...prettier333MarkdownPlugin.parsers.mdx,
13
+ // Overrides the prettier MDX parser's AST format.
14
+ astFormat: "prettier-3.3.3-mdast",
15
+ },
16
+ remark: {
17
+ // Replaces the prettier Remark parser with the one from Prettier v3.3.3.
18
+ ...prettier333MarkdownPlugin.parsers.remark,
19
+ // Overrides the prettier Remark parser's AST format.
20
+ astFormat: "prettier-3.3.3-mdast",
21
+ },
10
22
  };
11
23
  export const printers = {
12
24
  // Adds the prettier v3.3.3 Markdown printer.
package/index.mjs CHANGED
@@ -21,6 +21,30 @@ export const parsers = {
21
21
  // Overrides the prettier Markdown parser's AST format.
22
22
  astFormat: "prettier-3.3.3-mdast",
23
23
  },
24
+ "markdown-original": {
25
+ // The prettier Markdown parser from the currently installed prettier version.
26
+ ...prettierCurrentMarkdownPlugin.parsers.markdown,
27
+ },
28
+ mdx: {
29
+ // The prettier MDX parser from the currently installed prettier version.
30
+ ...prettierCurrentMarkdownPlugin.parsers.mdx,
31
+ // Overrides the prettier MDX parser's AST format.
32
+ astFormat: "prettier-3.3.3-mdast",
33
+ },
34
+ "mdx-original": {
35
+ // The prettier MDX parser from the currently installed prettier version.
36
+ ...prettierCurrentMarkdownPlugin.parsers.mdx,
37
+ },
38
+ remark: {
39
+ // The prettier Remark parser from the currently installed prettier version.
40
+ ...prettierCurrentMarkdownPlugin.parsers.remark,
41
+ // Overrides the prettier Remark parser's AST format.
42
+ astFormat: "prettier-3.3.3-mdast",
43
+ },
44
+ "remark-original": {
45
+ // The prettier Remark parser from the currently installed prettier version.
46
+ ...prettierCurrentMarkdownPlugin.parsers.remark,
47
+ },
24
48
  };
25
49
  export const printers = {
26
50
  // Adds the prettier v3.3.3 Markdown printer.
package/package.json CHANGED
@@ -1,7 +1,22 @@
1
1
  {
2
2
  "name": "prettier-plugin-markdown-list-tabwidth",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "A Prettier plugin that reverts the change in Prettier v3.4.0 that altered how Markdown list items are indented.",
5
+ "keywords": [
6
+ "prettier",
7
+ "plugin",
8
+ "markdown",
9
+ "mdx",
10
+ "remark",
11
+ "list",
12
+ "tabwidth",
13
+ "3.3.3",
14
+ "3.4.0",
15
+ "revert",
16
+ "rollback",
17
+ "parser",
18
+ "printer"
19
+ ],
5
20
  "homepage": "https://github.com/8Crafter-Studios/prettier-plugin-markdown-list-tabwidth#readme",
6
21
  "bugs": {
7
22
  "email": "8crafteryt@gmail.com",