JSFiddle - React, Tailwind, and code Playground

by alnitak

HTML

<p>Perform the following commands:
   <code>&gt; cd /foo</code><code>&gt; adb shell</code><code># ps</code>
</p>
<br/>

<p>If you go to your <code>C:\</code> directory and run <code>dir</code> …</p>

CSS

.block {
    display: block;
}

JavaScript

$('code').each(function() {
    var prev = this.previousSibling;
    var next = this.nextSibling;
    if ((prev && prev.tagName === 'CODE') ||
        (next && next.tagName === 'CODE')) {
        $(this).addClass('block');
    }
});