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

Add "code-output" class to code-output blocks #858

Merged
merged 2 commits into from
Aug 2, 2021
Merged

Add "code-output" class to code-output blocks #858

merged 2 commits into from
Aug 2, 2021

Conversation

tlienart
Copy link
Owner

@tlienart tlienart commented Aug 2, 2021

Now:

julia> s = """
       ```!
       1+1
       ```
       """ |> fd2html |> println
<pre><code class="language-julia">1&#43;1</code></pre>
<pre><code class="plaintext code-output">2</code></pre>

so same as before but there's the extra class code-output that allows separate styling of code output blocks.

closes #856

@rikhuijzer
Copy link
Contributor

rikhuijzer commented Aug 2, 2021

Nice feature! Feel free to copy the CSS from Books.jl for output blocks 😄 From the docs:

image

EDIT: CSS at https://github.com/rikhuijzer/Books.jl/blob/d01e0480238507e15327270e6c3d3bf3a6038b2c/defaults/style.css#L273-280

@tlienart
Copy link
Owner Author

tlienart commented Aug 2, 2021

@rikhuijzer would you mind opening an issue on FT for this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't style code input and output together with \show
2 participants