Skip to content

Commit

Permalink
Merge branch '2023.10.20-export-experiment'
Browse files Browse the repository at this point in the history
  • Loading branch information
djdarcy committed Oct 21, 2023
2 parents fac5a43 + 1f2fc88 commit 1738a42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
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

0 comments on commit 1738a42

Please sign in to comment.