(slug)
| 162 | } |
| 163 | |
| 164 | function scrollToHeading(slug) { |
| 165 | if (!slug) return; |
| 166 | const el = document.getElementById(slug); |
| 167 | if (el) el.scrollIntoView({ behavior: "smooth", block: "start" }); |
| 168 | } |
| 169 | |
| 170 | function setActiveLink(noteId) { |
| 171 | document.querySelectorAll(".note-link").forEach((el) => { |