Skip to content

Commit 1c10379

Browse files
authored
Merge pull request #85 from HanaDigital/master
Version 3.1.1
2 parents 5b7524e + 2125570 commit 1c10379

File tree

6 files changed

+221
-5
lines changed

6 files changed

+221
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ List of supported sites:
3838

3939
Author: [@dr-nyt](https://github.com/dr-nyt)
4040
Contributors: [@webdagger](https://github.com/webdagger), [@jiskim](https://github.com/jiskim)
41-
Version: 3.1.0
41+
Version: 3.1.1
4242

4343
## FEATURES
4444

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "novelscraper",
33
"private": true,
4-
"version": "3.1.0",
4+
"version": "3.1.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -39,6 +39,7 @@
3939
"react": "^18.2.0",
4040
"react-dom": "^18.2.0",
4141
"react-markdown": "^10.1.0",
42+
"remark-gfm": "^4.0.1",
4243
"tailwind-merge": "^2.5.4",
4344
"tailwindcss-animate": "^1.0.7"
4445
},

pnpm-lock.yaml

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

src-tauri/tauri.conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "NovelScraper",
4-
"version": "3.1.0",
4+
"version": "3.1.1",
55
"identifier": "me.hanadigital.novelscraper",
66
"build": {
77
"beforeDevCommand": "pnpm dev",
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"security": {
23-
"csp": "default-src 'self'; img-src 'self' data: asset: https: ; object-src 'self' https: asset: https://asset.localhost http://asset.localhost; connect-src ipc:",
23+
"csp": "default-src 'self'; img-src 'self' data: asset: https: ; object-src 'self' https: asset: https://asset.localhost http://asset.localhost; connect-src 'self' ipc: https: http: ; script-src 'self' https: http:",
2424
"assetProtocol": {
2525
"enable": true,
2626
"scope": [

src/App.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,13 @@
9898
background-color: hsl(240 3.8% 46.1%);
9999
border-radius: 10px;
100100
}
101+
102+
#markdown ul {
103+
list-style: disc !important;
104+
padding-left: 1.2rem;
105+
}
106+
107+
#markdown ol {
108+
list-style: decimal !important;
109+
padding-left: 1.2rem;
110+
}

src/components/app-sidebar.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { getFirebaseAnalytics } from "@/lib/firebase";
1616
import { fetchGithubRelease } from "@/lib/utils";
1717
import DialogUI from "./dialog";
1818
import Markdown from 'react-markdown'
19+
import remarkGfm from "remark-gfm";
1920

2021
const analytics = getFirebaseAnalytics();
2122

@@ -36,6 +37,7 @@ export function AppSidebar() {
3637
}, []);
3738

3839
useEffect(() => {
40+
if (!version) return;
3941
logEvent(analytics, "started_app", { version });
4042
getReleaseNotes(version);
4143
}, [version]);
@@ -141,7 +143,9 @@ export function AppSidebar() {
141143
defaultOpen={appState.viewedNotesForVersion !== version}
142144
onOpenChange={handleSetReleaseNotesAsViewed}
143145
>
144-
<Markdown>{releaseNotes}</Markdown>
146+
<div id="markdown">
147+
<Markdown remarkPlugins={[remarkGfm]}>{releaseNotes}</Markdown>
148+
</div>
145149
</DialogUI>
146150
</SidebarMenuItem>
147151
}

0 commit comments

Comments
 (0)