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:
commit
1738a42ac9
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,7 +5,7 @@ node_modules/
|
||||
.pnp.*
|
||||
|
||||
# Testing
|
||||
private/
|
||||
*private*/
|
||||
|
||||
# rust
|
||||
target/
|
||||
|
2
scripts/export.js
vendored
2
scripts/export.js
vendored
@ -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',
|
||||
|
1
scripts/markdown.export.js
vendored
1
scripts/markdown.export.js
vendored
@ -11,6 +11,7 @@ var ExportMD = (function () {
|
||||
const turndownService = new TurndownService({
|
||||
hr: '---',
|
||||
})
|
||||
.keep([`\\`])
|
||||
.use(gfm)
|
||||
.addRule('code', {
|
||||
filter(node) {
|
||||
|
Loading…
Reference in New Issue
Block a user