Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating USER_INPUT_SELECTOR for scripts/export.js #1105

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_modules/
.pnp.*

# Testing
private/
*private*/

# rust
target/
Expand Down
2 changes: 1 addition & 1 deletion scripts/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions scripts/markdown.export.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var ExportMD = (function () {
const turndownService = new TurndownService({
hr: '---',
})
.keep([`\\`])
.use(gfm)
.addRule('code', {
filter(node) {
Expand Down