-
Notifications
You must be signed in to change notification settings - Fork 115
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
Can't style code input and output together with \show #856
Comments
hmm typically the code block has a language and the output block is <pre><code class="language-julia">for i in 1:5
println("*"^i)
end</code></pre><pre><code class="plaintext">*
**
***
****
*****
</code></pre> so the styling could be done via Is that insufficient? If so we could have what you're suggesting by
|
using the code language feels a bit brittle to me, if I have another language that I don't have styling for, this might break. it's probably cleaner to mark the blocks specifically. |
alright done in #858. Note that I added the class to So now you'd style |
* closes #856 adding a class code-output * + patch release
Thanks, but is it possible in css to read out if two code blocks in two different pre tags with different classes follow each other? Well I guess output will usually not come alone, but I wanted to attach code and output visually if they come right behind each other. Not sure if that's possible with this solution |
For example, remove the rounded corners of the code cell at the joint |
how about this (which you could wrap in a command)
and in the CSS
I think it's safer to have that Otherwise you're in JS territory (check if an element is or not followed by another), I wouldn't recommend that. |
The code and the output are wrapped in
<pre>
but there is no way to apply css differently if an input block and an output block follow each other. Maybe it would be good to give and input and an output class to the<pre>
tags?The text was updated successfully, but these errors were encountered: