summaryrefslogtreecommitdiff
path: root/_plugins
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2018-10-23 11:32:03 +0200
committerPatrick Spek <p.spek@tyil.nl>2018-10-23 11:32:03 +0200
commit82e2f9e1d729a15f10a44387f5bbce9148ecbd4d (patch)
tree7191a020c71e244b2e5779342fc933e9b35165d0 /_plugins
parent043a2250a0a9ea1aefd96517df981e5826dcf37f (diff)
Clean up admonition block styling
Diffstat (limited to '_plugins')
-rw-r--r--_plugins/admonition_md.rb22
1 files changed, 6 insertions, 16 deletions
diff --git a/_plugins/admonition_md.rb b/_plugins/admonition_md.rb
index 614e09a..d22cceb 100644
--- a/_plugins/admonition_md.rb
+++ b/_plugins/admonition_md.rb
@@ -13,22 +13,12 @@ module Jekyll
def render(context)
content = super
- '<div class="admonitionblock">
- <table>
- <tbody>
- <tr>
- <td class="icon">
- <div class="title">' + @type + '</div>
- </td>
- <td class="content">
- <div class="paragraph">' +
- Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(content) + '
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>'
+ '<section class="admonition">
+ <div class="admonition-title">' + @type + '</div>
+ <div class="admonition-content">
+ ' + Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(content) + '
+ </div>
+ </section>'
end
end
end