Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Make ADF the same as what Confluence returns.
* Modified version of isEqual to work with our data * If no content in doc then make empty paragraph * If node.content or node.marks exists but has nothing in it or just null | undefined then remove * Merge text nodes that have the same marks * Include width and height when uploading images * Map codeblock languages to Confluence * Remove unsafe urls using isSafeUrl from "@atlaskit/adf-schema" (Confluence will remove these anyway) * Better handling of image upload results. Understands when an image is uploaded or not. * Better debugging when ADF comes back as different with undefined items * Replace images that don't exist to be uploaded with a paragraph saying "Invalid Image Path" Probably more I have missed.
- Loading branch information
1 parent
4933c62
commit a223c72
Showing
13 changed files
with
2,091 additions
and
7,334 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
{ | ||
"name": "obsidian-confluence-root", | ||
"private": true, | ||
"version": "3.6.1", | ||
"type": "module", | ||
"scripts": { | ||
"prepare": "husky install", | ||
"devall": "npm run dev --workspace=@markdown-confluence/lib & npm run dev --workspace=@markdown-confluence/mermaid-electron-renderer & npm run dev --workspace=obsidian-confluence" | ||
"name":"obsidian-confluence-root", | ||
"private":true, | ||
"version":"3.6.1", | ||
"type":"module", | ||
"scripts":{ | ||
"prepare":"husky install", | ||
"devall":"npm run dev --workspace=@markdown-confluence/lib & npm run dev --workspace=@markdown-confluence/mermaid-electron-renderer & npm run dev --workspace=obsidian-confluence" | ||
}, | ||
"devDependencies": {}, | ||
"workspaces": [ | ||
"packages/*" | ||
"devDependencies":{ | ||
"@types/node":"^16.11.6", | ||
"@typescript-eslint/eslint-plugin":"^5.29.0", | ||
"@typescript-eslint/parser":"^5.58.0", | ||
"builtin-modules":"3.3.0", | ||
"esbuild":"0.17.16", | ||
"esbuild-node-externals":"^1.7.0", | ||
"eslint":"^8.38.0", | ||
"eslint-config-prettier":"^8.8.0", | ||
"husky":"^8.0.3", | ||
"lint-staged":"^13.2.1", | ||
"prettier":"2.8.7", | ||
"ts-jest":"^29.1.0", | ||
"ts-node":"^10.9.1", | ||
"tslib":"2.5.0", | ||
"typescript":"4.7.4" | ||
}, | ||
"workspaces":[ | ||
"packages/*" | ||
], | ||
"lint-staged": { | ||
"packages/**/*.ts": "prettier --write" | ||
"lint-staged":{ | ||
"packages/**/*.ts":"prettier --write" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.