File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed
desktop/src/components/main/body/changelog
packages/tiptap/src/styles Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,11 @@ function stripFrontmatter(content: string): string {
4747 return content . trim ( ) ;
4848}
4949
50- function stripImageLine ( content : string ) : string {
51- return content . replace ( / ^ ! \[ .* ?\] \( .* ?\) \s * \n * / m, "" ) ;
50+ function fixImageUrls ( content : string ) : string {
51+ return content . replace (
52+ / ! \[ ( [ ^ \] ] * ) \] \( \/ a p i \/ i m a g e s \/ ( [ ^ ) ] + ) \) / g,
53+ "" ,
54+ ) ;
5255}
5356
5457function addEmptyParagraphsBeforeHeaders (
@@ -188,7 +191,7 @@ function useChangelogContent(version: string) {
188191
189192 changelogFiles [ key ] ( )
190193 . then ( ( raw ) => {
191- const markdown = stripImageLine ( stripFrontmatter ( raw as string ) ) ;
194+ const markdown = fixImageUrls ( stripFrontmatter ( raw as string ) ) ;
192195 const json = md2json ( markdown ) ;
193196 setContent ( addEmptyParagraphsBeforeHeaders ( json ) ) ;
194197 setLoading ( false ) ;
Original file line number Diff line number Diff line change 11import { createFileRoute } from "@tanstack/react-router" ;
22
33const SUPABASE_STORAGE_URL =
4- "https://ijoptyyjrfqwaqhyxkxj.supabase.co /storage/v1/object/public/public_images" ;
4+ "https://auth.hyprnote.com /storage/v1/object/public/public_images" ;
55
66const SAFE_SEGMENT = / ^ [ A - Z a - z 0 - 9 . _ + - ] + $ / ;
77
Original file line number Diff line number Diff line change 3232 margin-bottom : 0.25rem ;
3333 }
3434
35+ .tiptap-image-wrapper {
36+ padding-top : 0.5rem ;
37+ padding-bottom : 0.5rem ;
38+ }
39+
40+ > .tiptap-image-wrapper : first-child {
41+ padding-top : 0 ;
42+ }
43+
44+ > .tiptap-image-wrapper : last-child {
45+ padding-bottom : 0 ;
46+ }
47+
3548 .tiptap-image {
36- max-width : 240 px ;
49+ max-width : 100 % ;
3750 height : auto;
3851 display : block;
3952 }
You can’t perform that action at this time.
0 commit comments