How do I add a CSS class to a code block? #335
Unanswered
dataframing
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Try using the "manual" way of specifying code cells - the
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Hi! I'm trying to write a post using just Markdown. Some of the instructions in the post are shell/bash commands, which are fine to define, but not so easy to include code output. For example, I currently have:
...which works, but it'd be much nicer to have the same functionality as in notebooks:
I'm aware this may not be a great idea for reproducibility, but some commands are tricky to have run whenever we build the book, and we'd like to manually specify what the reader should see in a more visually appealing way.
Describe the solution you'd like
I was hoping there would be a way to:
:class: code_cell
):class: code_output
)Alternatively, I'm fine with converting my Markdown to a notebook, but is it possible to specify a cell output there?
Describe alternatives you've considered
I was looking through the docs on Formatting code outputs, but couldn't find something that applies to Markdown.
Additional context
None! Thank you so much for jupyter-book — it's fantastic!
Beta Was this translation helpful? Give feedback.
All reactions