-
Notifications
You must be signed in to change notification settings - Fork 35
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
Python instructions not getting syntax-highlight if inside same code block #27
Comments
I think I've identified from the code you just shared on stackblitz why it wasn't getting syntax highlighter (i.e. no This works: <pre>
<code class="language-python">
k_means = cluster.KMeans(n_clusters=2)
l = k_means.fit(X)
</code>
</pre> While this doesn't: <pre>
<code class="language-python">
k_means = cluster.KMeans(n_clusters=2)
l = k_means.fit(X)
</code>
</pre> Another point, though maybe in this case the problem is coming from This won't work: <pre>
<code class="language-python">
k_means = cluster.KMeans(n_clusters=2)
k_means.fit(X)
</code>
</pre> But this does work (notice the assignment in the second instruction): <pre>
<code class="language-python">
k_means = cluster.KMeans(n_clusters=2)
_ = k_means.fit(X)
</code>
</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report or Feature Request (mark with an
x
)OS and Version?
Archlinux
Versions
Repro steps
The following two
python
instructions won't get syntax-highlighed if they're in the same<pre><code>...</code></pre>
block, but they're normally syntax-highlighted if we put each in a different code block:This error can be reproduced on stackblitz.
The text was updated successfully, but these errors were encountered: