@void/md 0.0.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.
@@ -0,0 +1,107 @@
1
+ /* Void Markdown — Reset & Baseline
2
+ *
3
+ * Opinionated modern reset for markdown-driven sites.
4
+ * Imported by index.css — not intended for standalone use.
5
+ */
6
+
7
+ /* Box sizing */
8
+ *,
9
+ *::before,
10
+ *::after {
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ /* Remove default margins */
15
+ * {
16
+ margin: 0;
17
+ }
18
+
19
+ /* Document */
20
+ html {
21
+ line-height: 1.5;
22
+ -webkit-text-size-adjust: 100%;
23
+ -moz-tab-size: 4;
24
+ tab-size: 4;
25
+ scroll-behavior: smooth;
26
+ }
27
+
28
+ /* Body */
29
+ body {
30
+ min-height: 100dvh;
31
+ font-family:
32
+ system-ui,
33
+ -apple-system,
34
+ 'Segoe UI',
35
+ Roboto,
36
+ 'Helvetica Neue',
37
+ Arial,
38
+ sans-serif;
39
+ -webkit-font-smoothing: antialiased;
40
+ -moz-osx-font-smoothing: grayscale;
41
+ text-rendering: optimizeLegibility;
42
+ }
43
+
44
+ /* Typography */
45
+ h1,
46
+ h2,
47
+ h3,
48
+ h4,
49
+ h5,
50
+ h6 {
51
+ overflow-wrap: break-word;
52
+ text-wrap: balance;
53
+ }
54
+
55
+ p {
56
+ overflow-wrap: break-word;
57
+ text-wrap: pretty;
58
+ }
59
+
60
+ /* Media */
61
+ img,
62
+ picture,
63
+ video,
64
+ canvas,
65
+ svg {
66
+ display: block;
67
+ max-width: 100%;
68
+ }
69
+
70
+ img,
71
+ video {
72
+ height: auto;
73
+ }
74
+
75
+ /* Forms */
76
+ input,
77
+ button,
78
+ textarea,
79
+ select {
80
+ font: inherit;
81
+ }
82
+
83
+ /* Monospace */
84
+ code,
85
+ kbd,
86
+ samp,
87
+ pre {
88
+ font-family:
89
+ ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
90
+ font-size: 1em;
91
+ }
92
+
93
+ /* Links */
94
+ a {
95
+ color: inherit;
96
+ text-decoration: inherit;
97
+ }
98
+
99
+ /* Tables */
100
+ table {
101
+ border-collapse: collapse;
102
+ }
103
+
104
+ /* Horizontal rule */
105
+ hr {
106
+ border: none;
107
+ }
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@void/md",
3
+ "version": "0.0.0",
4
+ "files": [
5
+ "dist",
6
+ "pages.d.ts"
7
+ ],
8
+ "type": "module",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.mts",
12
+ "import": "./dist/index.mjs"
13
+ },
14
+ "./plugin": {
15
+ "types": "./dist/plugin.d.mts",
16
+ "import": "./dist/plugin.mjs"
17
+ },
18
+ "./runtime": {
19
+ "types": "./dist/runtime/index.d.mts",
20
+ "import": "./dist/runtime/index.mjs"
21
+ },
22
+ "./pages": {
23
+ "types": "./pages.d.ts"
24
+ },
25
+ "./theme.css": "./dist/theme/index.css",
26
+ "./theme-content.css": "./dist/theme/content.css"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "scripts": {
32
+ "build": "tsdown",
33
+ "dev": "tsdown --watch",
34
+ "typecheck": "tsgo --noEmit"
35
+ },
36
+ "dependencies": {
37
+ "@shikijs/engine-javascript": "^4.0.2",
38
+ "@shikijs/transformers": "^4.0.2",
39
+ "gray-matter": "^4.0.3",
40
+ "markdown-exit": "1.0.0-beta.9",
41
+ "markdown-it-anchor": "^9.2.0",
42
+ "markdown-it-attrs": "^4.3.1",
43
+ "markdown-it-container": "^4.0.0",
44
+ "markdown-it-emoji": "^3.0.0",
45
+ "pathe": "catalog:",
46
+ "shiki": "^4.0.2",
47
+ "tinyglobby": "^0.2.16"
48
+ },
49
+ "devDependencies": {
50
+ "@types/node": "catalog:",
51
+ "tsdown": "catalog:",
52
+ "vite": "catalog:",
53
+ "void": "workspace:*",
54
+ "vue": "^3.5.33"
55
+ },
56
+ "peerDependencies": {
57
+ "vite": "catalog:",
58
+ "void": "workspace:*"
59
+ }
60
+ }
package/pages.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Virtual module — resolved by the @void/md Vite plugin at build time.
3
+ * This stub provides type information for TypeScript and linters.
4
+ */
5
+ export {};
6
+
7
+ export interface VoidMdPage {
8
+ path: string;
9
+ title: string;
10
+ frontmatter: Record<string, unknown>;
11
+ headings: Array<{ depth: number; slug: string; text: string }>;
12
+ }
13
+
14
+ declare const pages: Array<VoidMdPage>;
15
+ export default pages;