pre-commit formatter
This commit is contained in:
parent
ddec81c876
commit
a1cd164e9a
117 changed files with 153 additions and 170 deletions
|
@ -61,4 +61,4 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
|||
// Add copy button to code blocks
|
||||
let highlightBlocks = document.getElementsByClassName('highlight');
|
||||
Array.prototype.forEach.call(highlightBlocks, addCopyButton);
|
||||
}, false);
|
||||
}, false);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
(function(window){
|
||||
'use strict'
|
||||
|
||||
|
||||
const elementCode = '.mermaid'
|
||||
const loadMermaid = function(theme) {
|
||||
window.mermaid.initialize({theme})
|
||||
|
@ -26,7 +26,7 @@
|
|||
}
|
||||
});
|
||||
} catch (error) {
|
||||
reject(error)
|
||||
reject(error)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -46,11 +46,11 @@
|
|||
}
|
||||
});
|
||||
} catch (error) {
|
||||
reject(error)
|
||||
reject(error)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const init = ()=>{
|
||||
saveOriginalData()
|
||||
.catch( console.error )
|
||||
|
@ -66,4 +66,4 @@
|
|||
})
|
||||
}
|
||||
window.initMermaid = init
|
||||
})(window);
|
||||
})(window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue