1
0
mirror of https://github.com/lencx/ChatGPT.git synced 2024-10-01 01:06:13 -04:00

Merge branch '2023.10.20-export-experiment'

This commit is contained in:
Dustin Darcy 2023-10-20 23:17:40 -04:00
commit 1738a42ac9
3 changed files with 3 additions and 2 deletions

2
.gitignore vendored
View File

@ -5,7 +5,7 @@ node_modules/
.pnp.*
# Testing
private/
*private*/
# rust
target/

2
scripts/export.js vendored
View File

@ -6,7 +6,7 @@
async function exportInit() {
const SELECTOR = 'main div.group';
const USER_INPUT_SELECTOR = 'div.empty\\:hidden';
const USER_INPUT_SELECTOR = 'div.relative.flex.w-\\[calc\\(100\\%-50px\\)\\].flex-col.gizmo\\:w-full.lg\\:w-\\[calc\\(100\\%-115px\\)\\].gizmo\\:text-gizmo-gray-600.gizmo\\:dark\\:text-gray-300';
const Format = {
PNG: 'png',
PDF: 'pdf',

View File

@ -11,6 +11,7 @@ var ExportMD = (function () {
const turndownService = new TurndownService({
hr: '---',
})
.keep([`\\`])
.use(gfm)
.addRule('code', {
filter(node) {