Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HLJS and Include PlainText language. #56

Merged
merged 3 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion views/htmx.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ async def htmx_save(self, request: starlette_plus.Request) -> starlette_plus.Res
)

if resp := validate_paste(data):
json_: dict[str, Any] = json.loads(resp.body)
json_: dict[str, Any] = json.loads(resp.body) # type: ignore Can only be memoryview when specifically used.
return starlette_plus.HTMLResponse(
f"""<span id="errorResponse">{resp.status_code}: {json_["error"]}</span>""",
headers=error_headers,
Expand Down
2 changes: 1 addition & 1 deletion web/password.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<!-- <link rel="preload" href="static/packages/highlight.min.js" as="script"> -->
<!-- <link rel="preload" href="static/packages/highlight-ln.min.js" as="script"> -->
<script src="/static/packages/htmx.min.js"></script>
<script src="/static/packages/highlight.min.js"></script>
<script src="/static/packages/highlight.min.js?v=2"></script>

<!-- SCRIPTS -->
<script src="/static/scripts/initialTheme.js?v=1"></script>
Expand Down
2 changes: 1 addition & 1 deletion web/paste.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script src="/static/packages/htmx.min.js"></script>
<!-- <link rel="preload" href="static/packages/highlight.min.js" as="script"> -->
<!-- <link rel="preload" href="static/packages/highlight-ln.min.js" as="script"> -->
<script src="/static/packages/highlight.min.js"></script>
<script src="/static/packages/highlight.min.js?v=2"></script>

<!-- SCRIPTS -->
<script src="/static/scripts/initialTheme.js?v=1"></script>
Expand Down
Loading
Loading