chatgpt-to-markdown 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/index.js +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
@@ -97,6 +97,7 @@ git push --follow-tags
|
|
97
97
|
|
98
98
|
## Release notes
|
99
99
|
|
100
|
+
- 1.5.3: 05 Aug 2024. Show text from multimodal prompts
|
100
101
|
- 1.5.2: 05 Aug 2024. Show tether_browsing_display summary
|
101
102
|
- 1.5.1: 22 Mar 2024. Handle unicode filenames
|
102
103
|
- 1.5.0: 28 Nov 2023. Handle `tether_browsing_display`, `tether_quote` and `system_error`
|
package/index.js
CHANGED
@@ -96,9 +96,11 @@ async function chatgptToMarkdown(json, sourceDir, { dateFormat } = { dateFormat:
|
|
96
96
|
case "multimodal_text":
|
97
97
|
body = content.parts
|
98
98
|
.map((part) =>
|
99
|
-
part
|
100
|
-
?
|
101
|
-
:
|
99
|
+
typeof part == "string"
|
100
|
+
? `${part}\n\n`
|
101
|
+
: part.content_type === "image_asset_pointer"
|
102
|
+
? `Image (${part.width}x${part.height}): ${part?.metadata?.dalle?.prompt ?? ""}\n\n`
|
103
|
+
: `${part.content_type}\n\n`,
|
102
104
|
)
|
103
105
|
.join("");
|
104
106
|
break;
|