Skip to content

Commit

Permalink
Fixed issue 252 by changing behaviour of 'Regenerate Note Type Table'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvio Menubarbe committed Nov 20, 2021
1 parent 488454f commit 98c5b03
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 98 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Obsidian development
main.js

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
148 changes: 78 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@rollup/plugin-typescript": "^6.1.0",
"@types/node": "^14.14.2",
"@types/showdown": "^1.9.3",
"obsidian": "https://github.com/obsidianmd/obsidian-api/tarball/master",
"obsidian": "^0.12.17",
"rollup": "^2.32.1",
"rollup-plugin-node-polyfills": "^0.2.1",
"showdown-highlight": "^2.1.5",
Expand Down
2 changes: 1 addition & 1 deletion src/anki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface AnkiConnectRequest {
}

export function invoke(action: string, params={}) {
return new Promise((resolve, reject) => {
return new Promise<any>((resolve, reject) => {
const xhr = new XMLHttpRequest()
xhr.addEventListener('error', () => reject('failed to issue request'));
xhr.addEventListener('load', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let converter: Converter = new Converter({
tables: true, tasklists: true,
simpleLineBreaks: true,
requireSpaceBeforeHeadingText: true,
extensions: [showdownHighlight]
extensions: [showdownHighlight as any]
})

function escapeHtml(unsafe: string): string {
Expand Down

0 comments on commit 98c5b03

Please sign in to comment.