From 5f244d3c311e6bddf0002800d39944b871b80e62 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 7 Aug 2016 14:14:23 -0700 Subject: [PATCH] Remove em elements from code blocks. --- lib/main/build-site.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/main/build-site.js b/lib/main/build-site.js index ffa9d03cc..b383dfb2c 100644 --- a/lib/main/build-site.js +++ b/lib/main/build-site.js @@ -46,6 +46,11 @@ function build(type) { } }); + $('h3 code em').parent().each(function() { + var $code = $(this); + $code.html($code.html().replace(/<\/?em>/g, '_')); + }); + var html = [ // Append YAML front matter. '---',