markdown 수정 페이지 호출 방식 변경
All checks were successful
Build And Test / build-and-push (push) Successful in 4m20s
All checks were successful
Build And Test / build-and-push (push) Successful in 4m20s
This commit is contained in:
@ -42,13 +42,14 @@
|
||||
<!-- Highlight.js Script -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
|
||||
<script>
|
||||
// Initialize Highlight.js
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document
|
||||
.querySelectorAll("pre code")
|
||||
.forEach((block) => {
|
||||
hljs.highlightElement(block);
|
||||
});
|
||||
// 문서 로드 후 동작
|
||||
document.addEventListener("DOMContentLoaded", async () => {
|
||||
// 코드 블럭 하이라이트
|
||||
document.querySelectorAll("pre code").forEach((block) => {
|
||||
hljs.highlightElement(block);
|
||||
});
|
||||
|
||||
await updateImagesWithPresignedUrls();
|
||||
});
|
||||
|
||||
// Function to update images with presigned URLs
|
||||
@ -90,9 +91,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
// Call the function when the page loads
|
||||
document.addEventListener("DOMContentLoaded", updateImagesWithPresignedUrls);
|
||||
|
||||
// Delete post
|
||||
document
|
||||
.getElementById("delete-button")
|
||||
|
Reference in New Issue
Block a user