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
Fix #124 according to the snippet by @mrvdb #128
Conversation
I changed the sh alias to shell instead of bash. The additions to the `highlight(nodes)` function look redundant. It works for me without them but maybe they cover an edge case I cannot think about?
Notes for consideration:
|
|
Regarding <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.8/styles/default.min.css">
<script src="highlight/highlight.pack.js" ></script>
<script src="highlight/javascript.min.js" ></script>
</head>
<body>
<pre><code>
document.querySelectorAll("body.dark");
</code></pre>
<!-- <script>hljs.initHighlightingOnLoad();</script> -->
<script>hljs.highlightBlock(document.querySelector("code"));</script>
</body>
</html> |
because this is the alias in highlight itself. (see #128 (comment))
Agreed. I can't see any useful effect either, I assumed it at least kept the list of languages, but it does not. While we're cleaning, the |
Nice catch. Removed it. |
Previously, this would only run when configuring an instance for single-user usage. Now it'll also run when configuring for multi-user usage. It also adds a log when the database has already been initialized.
do anything useful (see #128 (comment))
I changed the sh alias to shell instead of bash.
The additions to the
highlight(nodes)
function look redundant.It works for me without them but maybe they cover an edge case I
cannot think about?