@nuxtjs/mdc 0.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.
Files changed (109) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +64 -0
  3. package/dist/module.cjs +5 -0
  4. package/dist/module.d.mts +55 -0
  5. package/dist/module.d.ts +55 -0
  6. package/dist/module.json +5 -0
  7. package/dist/module.mjs +174 -0
  8. package/dist/runtime/components/MDC.vue +36 -0
  9. package/dist/runtime/components/MDCRenderer.vue +293 -0
  10. package/dist/runtime/components/MDCRenderer.vue.d.ts +92 -0
  11. package/dist/runtime/components/MDCSlot.vue +60 -0
  12. package/dist/runtime/components/MDCSlot.vue.d.ts +5 -0
  13. package/dist/runtime/components/prose/ProseA.vue +22 -0
  14. package/dist/runtime/components/prose/ProseBlockquote.vue +5 -0
  15. package/dist/runtime/components/prose/ProseCode.vue +3 -0
  16. package/dist/runtime/components/prose/ProseEm.vue +5 -0
  17. package/dist/runtime/components/prose/ProseH1.vue +20 -0
  18. package/dist/runtime/components/prose/ProseH2.vue +20 -0
  19. package/dist/runtime/components/prose/ProseH3.vue +20 -0
  20. package/dist/runtime/components/prose/ProseH4.vue +20 -0
  21. package/dist/runtime/components/prose/ProseH5.vue +20 -0
  22. package/dist/runtime/components/prose/ProseH6.vue +20 -0
  23. package/dist/runtime/components/prose/ProseHr.vue +3 -0
  24. package/dist/runtime/components/prose/ProseImg.vue +42 -0
  25. package/dist/runtime/components/prose/ProseLi.vue +3 -0
  26. package/dist/runtime/components/prose/ProseOl.vue +5 -0
  27. package/dist/runtime/components/prose/ProseP.vue +3 -0
  28. package/dist/runtime/components/prose/ProsePre.vue +39 -0
  29. package/dist/runtime/components/prose/ProseStrong.vue +5 -0
  30. package/dist/runtime/components/prose/ProseTable.vue +5 -0
  31. package/dist/runtime/components/prose/ProseTbody.vue +5 -0
  32. package/dist/runtime/components/prose/ProseTd.vue +5 -0
  33. package/dist/runtime/components/prose/ProseTh.vue +5 -0
  34. package/dist/runtime/components/prose/ProseThead.vue +5 -0
  35. package/dist/runtime/components/prose/ProseTr.vue +5 -0
  36. package/dist/runtime/components/prose/ProseUl.vue +5 -0
  37. package/dist/runtime/index.d.ts +3 -0
  38. package/dist/runtime/index.mjs +3 -0
  39. package/dist/runtime/parser/compiler.d.ts +1 -0
  40. package/dist/runtime/parser/compiler.mjs +78 -0
  41. package/dist/runtime/parser/handlers/code.d.ts +5 -0
  42. package/dist/runtime/parser/handlers/code.mjs +31 -0
  43. package/dist/runtime/parser/handlers/containerComponent.d.ts +10 -0
  44. package/dist/runtime/parser/handlers/containerComponent.mjs +15 -0
  45. package/dist/runtime/parser/handlers/emphasis.d.ts +6 -0
  46. package/dist/runtime/parser/handlers/emphasis.mjs +10 -0
  47. package/dist/runtime/parser/handlers/html.d.ts +3 -0
  48. package/dist/runtime/parser/handlers/html.mjs +14 -0
  49. package/dist/runtime/parser/handlers/image.d.ts +6 -0
  50. package/dist/runtime/parser/handlers/image.mjs +13 -0
  51. package/dist/runtime/parser/handlers/index.d.ts +22 -0
  52. package/dist/runtime/parser/handlers/index.mjs +22 -0
  53. package/dist/runtime/parser/handlers/inlineCode.d.ts +6 -0
  54. package/dist/runtime/parser/handlers/inlineCode.mjs +12 -0
  55. package/dist/runtime/parser/handlers/link.d.ts +6 -0
  56. package/dist/runtime/parser/handlers/link.mjs +18 -0
  57. package/dist/runtime/parser/handlers/list.d.ts +4 -0
  58. package/dist/runtime/parser/handlers/list.mjs +26 -0
  59. package/dist/runtime/parser/handlers/paragraph.d.ts +4 -0
  60. package/dist/runtime/parser/handlers/paragraph.mjs +19 -0
  61. package/dist/runtime/parser/handlers/strong.d.ts +6 -0
  62. package/dist/runtime/parser/handlers/strong.mjs +10 -0
  63. package/dist/runtime/parser/handlers/utils.d.ts +19 -0
  64. package/dist/runtime/parser/handlers/utils.mjs +33 -0
  65. package/dist/runtime/parser/index.d.ts +11 -0
  66. package/dist/runtime/parser/index.mjs +60 -0
  67. package/dist/runtime/parser/options.d.ts +2 -0
  68. package/dist/runtime/parser/options.mjs +50 -0
  69. package/dist/runtime/parser/shiki.d.ts +8 -0
  70. package/dist/runtime/parser/shiki.mjs +55 -0
  71. package/dist/runtime/parser/toc.d.ts +3 -0
  72. package/dist/runtime/parser/toc.mjs +59 -0
  73. package/dist/runtime/parser/utils/html-tags-list.d.ts +2 -0
  74. package/dist/runtime/parser/utils/html-tags-list.mjs +119 -0
  75. package/dist/runtime/parser/utils/plugins.d.ts +3 -0
  76. package/dist/runtime/parser/utils/plugins.mjs +10 -0
  77. package/dist/runtime/parser/utils/props.d.ts +5 -0
  78. package/dist/runtime/parser/utils/props.mjs +33 -0
  79. package/dist/runtime/shiki/event-handler.d.ts +8 -0
  80. package/dist/runtime/shiki/event-handler.mjs +15 -0
  81. package/dist/runtime/shiki/highlighter.d.ts +25 -0
  82. package/dist/runtime/shiki/highlighter.mjs +298 -0
  83. package/dist/runtime/shiki/mdc.tmLanguage.d.ts +323 -0
  84. package/dist/runtime/shiki/mdc.tmLanguage.mjs +582 -0
  85. package/dist/runtime/shiki/types.d.ts +32 -0
  86. package/dist/runtime/shiki/types.mjs +0 -0
  87. package/dist/runtime/types/hast.d.ts +255 -0
  88. package/dist/runtime/types/hast.mjs +0 -0
  89. package/dist/runtime/types/index.d.ts +3 -0
  90. package/dist/runtime/types/index.mjs +3 -0
  91. package/dist/runtime/types/parser.d.ts +30 -0
  92. package/dist/runtime/types/parser.mjs +0 -0
  93. package/dist/runtime/types/toc.d.ts +12 -0
  94. package/dist/runtime/types/toc.mjs +0 -0
  95. package/dist/runtime/types/tree.d.ts +17 -0
  96. package/dist/runtime/types/tree.mjs +0 -0
  97. package/dist/runtime/types/unist.d.ts +107 -0
  98. package/dist/runtime/types/unist.mjs +0 -0
  99. package/dist/runtime/utils/ast.d.ts +6 -0
  100. package/dist/runtime/utils/ast.mjs +29 -0
  101. package/dist/runtime/utils/node.d.ts +37 -0
  102. package/dist/runtime/utils/node.mjs +75 -0
  103. package/dist/runtime/utils/slot.d.ts +3 -0
  104. package/dist/runtime/utils/slot.mjs +8 -0
  105. package/dist/runtime/utils/ssrSlot.d.ts +1 -0
  106. package/dist/runtime/utils/ssrSlot.mjs +8 -0
  107. package/dist/types.d.mts +7 -0
  108. package/dist/types.d.ts +7 -0
  109. package/package.json +99 -0
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@nuxtjs/mdc",
3
+ "version": "0.1.0",
4
+ "description": "Nuxt MDC module",
5
+ "repository": "nuxt-modules/mdc",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/types.d.ts",
11
+ "import": "./dist/module.mjs",
12
+ "require": "./dist/module.cjs"
13
+ },
14
+ "./runtime": "./dist/runtime/index.mjs",
15
+ "./dist/runtime": "./dist/runtime/index.mjs",
16
+ "./runtime/*": "./dist/runtime/*.mjs",
17
+ "./dist/runtime/*": "./dist/runtime/*.mjs"
18
+ },
19
+ "main": "./dist/module.cjs",
20
+ "types": "./dist/types.d.ts",
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "scripts": {
25
+ "prepack": "nuxi prepare playground; nuxt-module-build",
26
+ "build": "nuxi prepare playground; nuxt-module-build",
27
+ "dev": "nuxi dev playground",
28
+ "dev:build": "nuxi build playground",
29
+ "dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
30
+ "dev:docs": "nuxi dev docs",
31
+ "release": "release-it",
32
+ "lint": "eslint .",
33
+ "test": "vitest run",
34
+ "test:watch": "vitest watch"
35
+ },
36
+ "dependencies": {
37
+ "@nuxt/kit": "latest",
38
+ "@types/hast": "^3.0.0",
39
+ "@types/mdast": "^4.0.0",
40
+ "@vue/compiler-core": "^3.3.4",
41
+ "consola": "^3.2.3",
42
+ "defu": "^6.1.2",
43
+ "destr": "^2.0.1",
44
+ "detab": "^3.0.2",
45
+ "github-slugger": "^2.0.0",
46
+ "hast-util-to-string": "^2.0.0",
47
+ "mdast-util-to-hast": "^13.0.1",
48
+ "micromark-util-sanitize-uri": "^2.0.0",
49
+ "property-information": "^6.2.0",
50
+ "rehype-external-links": "^2.1.0",
51
+ "rehype-raw": "^6.1.1",
52
+ "rehype-slug": "^5.1.0",
53
+ "rehype-sort-attribute-values": "^4.0.0",
54
+ "rehype-sort-attributes": "^4.0.0",
55
+ "remark-emoji": "^4.0.0",
56
+ "remark-gfm": "^3.0.1",
57
+ "remark-mdc": "^1.2.0",
58
+ "remark-parse": "^10.0.2",
59
+ "remark-rehype": "^10.1.0",
60
+ "scule": "^1.0.0",
61
+ "shiki-es": "^0.14.0",
62
+ "ufo": "^1.3.0",
63
+ "unified": "^11.0.2",
64
+ "unist-builder": "^4.0.0",
65
+ "unist-util-visit": "^5.0.0"
66
+ },
67
+ "devDependencies": {
68
+ "@nuxt/devtools": "latest",
69
+ "@nuxt/eslint-config": "^0.1.1",
70
+ "@nuxt/module-builder": "^0.5.0",
71
+ "@nuxt/schema": "^3.7.0",
72
+ "@nuxt/test-utils": "^3.7.0",
73
+ "@nuxthq/ui": "^2.7.0",
74
+ "@types/mdurl": "^1.0.2",
75
+ "@types/node": "^20.5.7",
76
+ "changelogen": "^0.5.5",
77
+ "eslint": "^8.48.0",
78
+ "nuxt": "^3.7.0",
79
+ "rehype": "^12.0.1",
80
+ "release-it": "^16.1.5",
81
+ "vitest": "^0.34.3"
82
+ },
83
+ "packageManager": "pnpm@8.7.0",
84
+ "release-it": {
85
+ "git": {
86
+ "commitMessage": "chore(release): release v${version}"
87
+ },
88
+ "github": {
89
+ "release": true,
90
+ "releaseName": "v${version}"
91
+ },
92
+ "hooks": {
93
+ "after:bump": "npx changelogen@latest --no-commit --no-tag --output --r $(node -p \"require('./package.json').version\")"
94
+ }
95
+ },
96
+ "publishConfig": {
97
+ "access": "public"
98
+ }
99
+ }