Skip to content

Commit

Permalink
fixes #290
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Aug 14, 2024
1 parent 7688819 commit 3539a7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fasthtml/js.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def dark_media(
return Style('@media (prefers-color-scheme: dark) {%s}' %css)

# %% ../nbs/api/03_js.ipynb
marked_imp = Script("""import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
marked_imp = """import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
import { proc_htmx } from "https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js/fasthtml.js";
""")
"""
npmcdn = 'https://cdn.jsdelivr.net/npm/'

# %% ../nbs/api/03_js.ipynb
Expand Down
4 changes: 2 additions & 2 deletions nbs/api/03_js.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@
"outputs": [],
"source": [
"#| export\n",
"marked_imp = Script(\"\"\"import { marked } from \"https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js\";\n",
"marked_imp = \"\"\"import { marked } from \"https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js\";\n",
" import { proc_htmx } from \"https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js/fasthtml.js\";\n",
"\"\"\")\n",
"\"\"\"\n",
"npmcdn = 'https://cdn.jsdelivr.net/npm/'"
]
},
Expand Down

0 comments on commit 3539a7d

Please sign in to comment.