github-markdown-editor 1.0.0 → 1.0.1

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,16 @@
1
+ /**
2
+ * Converts Markdown text to HTML using remark with GitHub Flavored Markdown support
3
+ * @param markdown - The markdown text to convert
4
+ * @returns Promise resolving to HTML string
5
+ */
6
+ export declare function convertMarkdownToHtml(markdown: string): Promise<string>;
7
+ /**
8
+ * Extracts frontmatter from markdown if present
9
+ * @param markdown - The markdown text
10
+ * @returns Object with frontmatter and content
11
+ */
12
+ export declare function extractFrontmatter(markdown: string): {
13
+ frontmatter: Record<string, string>;
14
+ content: string;
15
+ };
16
+ //# sourceMappingURL=markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../src/markdown.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAa7E;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG;IACpD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB,CAoBA"}
package/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "github-markdown-editor",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A modern GitHub-like Markdown editor built with CodeMirror 6",
5
- "main": "dist/index.js",
6
- "module": "dist/index.esm.js",
7
- "types": "dist/index.d.ts",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.esm.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.esm.js",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./style.css": "./dist/style.css"
15
+ },
8
16
  "files": [
9
17
  "dist"
10
18
  ],
@@ -22,11 +30,11 @@
22
30
  "react",
23
31
  "typescript"
24
32
  ],
25
- "author": "JustQ",
33
+ "author": "Your Name",
26
34
  "license": "MIT",
27
35
  "peerDependencies": {
28
- "react": "^18.0.0",
29
- "react-dom": "^18.0.0"
36
+ "react": ">=16.8.0",
37
+ "react-dom": ">=16.8.0"
30
38
  },
31
39
  "dependencies": {
32
40
  "@codemirror/commands": "^6.3.3",
@@ -37,6 +45,7 @@
37
45
  "remark": "^15.0.1",
38
46
  "remark-gfm": "^4.0.0",
39
47
  "remark-html": "^16.0.1",
48
+ "remark-parse": "^11.0.0",
40
49
  "unified": "^11.0.4"
41
50
  },
42
51
  "devDependencies": {
@@ -44,6 +53,7 @@
44
53
  "@types/react-dom": "^18.2.18",
45
54
  "@vitejs/plugin-react": "^4.2.1",
46
55
  "typescript": "^5.3.3",
47
- "vite": "^7.3.0"
56
+ "vite": "^5.0.11",
57
+ "vite-plugin-dts": "^3.9.1"
48
58
  }
49
59
  }