Skip to content

Commit 4939450

Browse files
committed
fixed opening md file
1 parent bb3c723 commit 4939450

File tree

4 files changed

+28
-7
lines changed

4 files changed

+28
-7
lines changed

package-lock.json

Lines changed: 14 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"about/*",
2222
"release/*",
2323
"src/assets/*",
24+
"src/themes/*",
2425
"src/components/*",
2526
"src/templates/*",
2627
"src/autoGenerator/*",

src/insertSave.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ export const handleOpenClick = (
129129
): void => {
130130
const input = document.createElement("input");
131131
input.type = "file";
132-
input.accept = ".md";
132+
// Accept common markdown extensions and mime types
133+
input.accept = ".md,.markdown,text/markdown,application/markdown";
133134
input.onchange = (e) => {
134135
const file = (e.target as HTMLInputElement).files?.[0];
135136
if (file) {

vite.config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ export default defineConfig({
1010
server: {
1111
port: port,
1212
strictPort: true,
13-
host: '0.0.0.0'
13+
host: '0.0.0.0',
14+
// Prevent watcher from following large or symlink-heavy build dirs (fixes ELOOP)
15+
watch: {
16+
ignored: [
17+
'**/build-prebuilt/**',
18+
'**/build-flathub/**',
19+
'**/build-*/**',
20+
'**/.flatpak-builder/**',
21+
'**/build/**'
22+
]
23+
}
1424
},
1525
build: {
1626
outDir: 'dist',

0 commit comments

Comments
 (0)