Download web/src/utils/markdown.js from jimlv/ssh: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/spaces/jimlv/ssh/resolve/main/web/src/utils/markdown.js
- Command line
-
hf download hf://spaces/jimlv/ssh/web/src/utils/markdown.js
-
curl -L -o markdown.js https://huggingface.co/spaces/jimlv/ssh/resolve/main/web/src/utils/markdown.js
505 Bytes
| export const loadMarkdownCSS = (isDark) => { | |
| const existingLink = document.getElementById('markdown-css') | |
| if (existingLink) existingLink.remove() | |
| const link = document.createElement('link') | |
| link.id = 'markdown-css' | |
| link.rel = 'stylesheet' | |
| link.href = isDark | |
| ? 'https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.8.1/github-markdown-dark.min.css' | |
| : 'https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.8.1/github-markdown.min.css' | |
| document.head.appendChild(link) | |
| } | |