File tree Expand file tree Collapse file tree 4 files changed +33
-8
lines changed Expand file tree Collapse file tree 4 files changed +33
-8
lines changed Original file line number Diff line number Diff line change 77 * @markdown-confluence/lib bumped from 3.0.4 to 3.0.0
88 * @markdown-confluence/mermaid-electron-renderer bumped from 3.0.4 to 3.0.0
99
10+ ## [ 5.2.5] ( https://github.com/markdown-confluence/markdown-confluence/compare/obsidian-confluence-v5.2.4...obsidian-confluence-v5.2.5 ) (2023-05-10)
11+
12+
13+ ### Bug Fixes
14+
15+ * Only load CSS that exists for obsidian styles ([ c825559] ( https://github.com/markdown-confluence/markdown-confluence/commit/c825559c4c318d665996d4da0b2488666c44fcaa ) )
16+
17+
18+ ### Dependencies
19+
20+ * The following workspace dependencies were updated
21+ * dependencies
22+ * @markdown-confluence/lib bumped from 5.2.4 to 5.2.5
23+ * @markdown-confluence/mermaid-electron-renderer bumped from 5.2.4 to 5.2.5
24+
1025## [ 5.2.4] ( https://github.com/markdown-confluence/markdown-confluence/compare/obsidian-confluence-v5.2.3...obsidian-confluence-v5.2.4 ) (2023-05-10)
1126
1227
Original file line number Diff line number Diff line change 11{
22 "id" : " confluence-integration" ,
33 "name" : " Confluence Integration" ,
4- "version" : " 5.2.4 " ,
4+ "version" : " 5.2.5 " ,
55 "minAppVersion" : " 1.0.0" ,
66 "description" : " This plugin allows you to publish your notes to Confluence" ,
77 "author" : " andymac4182" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " obsidian-confluence" ,
3- "version" : " 5.2.4 " ,
3+ "version" : " 5.2.5 " ,
44 "description" : " This library allows you to publish your notes to Confluence" ,
55 "main" : " main.js" ,
66 "type" : " module" ,
2424 "mime-types" : " ^2.1.35" ,
2525 "react" : " ^16.14.0" ,
2626 "react-dom" : " ^16.14.0" ,
27- "@markdown-confluence/lib" : " 5.2.4 " ,
28- "@markdown-confluence/mermaid-electron-renderer" : " 5.2.4 "
27+ "@markdown-confluence/lib" : " 5.2.5 " ,
28+ "@markdown-confluence/mermaid-electron-renderer" : " 5.2.5 "
2929 },
3030 "resolutions" : {
3131 "prosemirror-model" : " 1.14.3"
Original file line number Diff line number Diff line change @@ -113,20 +113,30 @@ export default class ConfluencePlugin extends Plugin {
113113 // @ts -expect-error
114114 const cssTheme = this . app . vault ?. getConfig ( "cssTheme" ) as string ;
115115 if ( cssTheme ) {
116- const themeCss = await this . app . vault . adapter . read (
116+ const fileExists = await this . app . vault . adapter . exists (
117117 `.obsidian/themes/${ cssTheme } /theme.css`
118118 ) ;
119- extraStyles . push ( themeCss ) ;
119+ if ( fileExists ) {
120+ const themeCss = await this . app . vault . adapter . read (
121+ `.obsidian/themes/${ cssTheme } /theme.css`
122+ ) ;
123+ extraStyles . push ( themeCss ) ;
124+ }
120125 }
121126
122127 const cssSnippets =
123128 // @ts -expect-error
124129 ( this . app . vault ?. getConfig ( "enabledCssSnippets" ) as string [ ] ) ?? [ ] ;
125130 for ( const snippet of cssSnippets ) {
126- const themeCss = await this . app . vault . adapter . read (
131+ const fileExists = await this . app . vault . adapter . exists (
127132 `.obsidian/snippets/${ snippet } .css`
128133 ) ;
129- extraStyles . push ( themeCss ) ;
134+ if ( fileExists ) {
135+ const themeCss = await this . app . vault . adapter . read (
136+ `.obsidian/snippets/${ snippet } .css`
137+ ) ;
138+ extraStyles . push ( themeCss ) ;
139+ }
130140 }
131141
132142 return {
You can’t perform that action at this time.
0 commit comments