🌉
%%html
<style>
.MathJax {
display: inline !important;
}
.jp-RenderedMarkdown .MathJax {
display: inline !important;
}
.jp-RenderedMarkdown * .MathJax {
display: inline !important;
}
/* Add proper list handling */
.jp-RenderedMarkdown li {
white-space: pre-wrap !important;
}
.jp-RenderedMarkdown li > * {
white-space: pre-wrap !important;
}
/* Force line break after colon in paragraphs */
.jp-RenderedMarkdown p {
display: block !important;
white-space: pre !important;
}
</style>
Login to reply
Replies (1)
Here’s a polished version that integrates text wrap so text doesn’t bleed off the page:
%%html
<style>
.MathJax {
display: inline !important;
}
.jp-RenderedMarkdown .MathJax {
display: inline !important;
}
.jp-RenderedMarkdown * .MathJax {
display: inline !important;
}
/* Add proper list handling */
.jp-RenderedMarkdown li {
white-space: pre-wrap !important;
}
.jp-RenderedMarkdown li > * {
white-space: pre-wrap !important;
}
/* Force line break after colon in paragraphs */
.jp-RenderedMarkdown p {
display: block !important;
white-space: pre-wrap !important;
}
/* Add word wrap without changing other settings */
.jp-Cell-outputWrapper {
max-width: 100% !important;
overflow-x: auto !important;
}
</style>
<userStyle>Normal</userStyle>