Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 60e4f1a

Browse files
committed
hotfix
1 parent 7a8e0db commit 60e4f1a

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

manifest-beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "3.1.1",
4+
"version": "3.1.2",
55
"minAppVersion": "1.1.1",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "3.1.1",
4+
"version": "3.1.2",
55
"minAppVersion": "1.1.1",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-dbfolder",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {

src/services/ParseService.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,13 @@ class Parse {
279279
break;
280280
// By default. Use markdown parser
281281
default:
282-
auxMarkdown = this.parseToMarkdown(wrapped, localSettings, isInline);
282+
auxMarkdown = this.parseToMarkdown(wrapped, localSettings, isInline).toString();
283283
}
284284
return auxMarkdown;
285285
}
286286

287-
private parseToMarkdown(wrapped: WrappedLiteral, localSettings: LocalSettings, isInline: boolean, wrapQuotes = false): string {
288-
let auxMarkdown = '';
287+
private parseToMarkdown(wrapped: WrappedLiteral, localSettings: LocalSettings, isInline: boolean, wrapQuotes = false): Literal {
288+
let auxMarkdown: Literal;
289289
switch (wrapped.type) {
290290
case 'boolean':
291291
case 'number':
@@ -299,8 +299,10 @@ class Parse {
299299
localSettings,
300300
isInline
301301
)
302-
)
303-
.join(', ');
302+
);
303+
if (isInline) {
304+
auxMarkdown = auxMarkdown.join(', ');
305+
}
304306
break;
305307
case 'link':
306308
auxMarkdown = wrapped.value.markdown();
@@ -325,7 +327,13 @@ class Parse {
325327
default:
326328
auxMarkdown = wrapped.value?.toString().trim();
327329
}
328-
return wrapQuotes ? this.handleYamlBreaker(auxMarkdown) : auxMarkdown;
330+
331+
const wrappedResponse = DataviewService.wrapLiteral(auxMarkdown);
332+
if (wrappedResponse.type === 'string') {
333+
return wrapQuotes ? this.handleYamlBreaker(wrappedResponse.value) : wrappedResponse.value;
334+
} else {
335+
return wrappedResponse.value;
336+
}
329337
}
330338

331339
private parseArrayToText(array: Literal[], localSettings: LocalSettings): string {

0 commit comments

Comments
 (0)