diff --git a/sphinx_bootstrap_theme/bootstrap/static/bootstrap-sphinx.js b/sphinx_bootstrap_theme/bootstrap/static/bootstrap-sphinx.js
index <HASH>..<HASH> 100644
--- a/sphinx_bootstrap_theme/bootstrap/static/bootstrap-sphinx.js
+++ b/sphinx_bootstrap_theme/bootstrap/static/bootstrap-sphinx.js
@@ -105,8 +105,8 @@
     $('div.warning').addClass('alert');
 
     // Inline code styles to Bootstrap style.
-    $('tt.docutils').replaceWith(function () {
-      return $("<code />").text($(this).text());
-    });
+    $('tt.docutils span.pre:first-child').each(function (i, e) {
+        $(e).parent().replaceWith(function () {
+            return $("<code />").text($(this).text());});});
   });
 }($jqTheme || window.jQuery));
Change code wrapping to only affect literal code blocks.