diff --git a/.themes/classic/sass/partials/_syntax.scss b/.themes/classic/sass/partials/_syntax.scss index 25e8d32..713d46e 100644 --- a/.themes/classic/sass/partials/_syntax.scss +++ b/.themes/classic/sass/partials/_syntax.scss @@ -201,7 +201,7 @@ pre, .highlight, .gist-highlight { } .highlight code { @extend .pre-code; background: #000;} -figure[role=code] { +figure.code { background: none; padding: 0; border: 0; diff --git a/plugins/backtick_code_block.rb b/plugins/backtick_code_block.rb index 7f5076d..6243de6 100644 --- a/plugins/backtick_code_block.rb +++ b/plugins/backtick_code_block.rb @@ -27,7 +27,7 @@ module BacktickCodeBlock end if @lang.nil? || @lang == 'plain' code = tableize_code(str.gsub('<','<').gsub('>','>')) - "" + "" else if @lang.include? "-raw" raw = "``` #{@options.sub('-raw', '')}\n" @@ -35,7 +35,7 @@ module BacktickCodeBlock raw += "\n```\n" else code = highlight(str, @lang) - "" + "" end end end diff --git a/plugins/pygments_code.rb b/plugins/pygments_code.rb index b87413f..c009df9 100644 --- a/plugins/pygments_code.rb +++ b/plugins/pygments_code.rb @@ -30,12 +30,12 @@ module HighlightCode highlighted_code end def tableize_code (str, lang = '') - table = '
' + table = ' |
|