[[_]] float clearing tag experiment

This commit is contained in:
lemonsqueeze
2013-03-19 17:37:08 +01:00
parent fe706c184e
commit 624e324383
3 changed files with 9 additions and 0 deletions
+6
View File
@@ -284,6 +284,12 @@ specified, default alignment is `left`.
[[gollum.png|float]]
By default text will fill up all the space around the image. To control how
much should show up use this tag to stop and start a new block so that
additional content doesn't fill in.
[[_]]
To specify a max-width, use the `width=` option. Units must be specified in
either `px` or `em`.
@@ -729,3 +729,4 @@ ul.actions {
padding: 0.25em;
}
.clearfloats { clear:both }
+2
View File
@@ -236,6 +236,8 @@ module Gollum
def process_tag(tag)
if tag =~ /^_TOC_$/
%{[[#{tag}]]}
elsif tag =~ /^_$/
%{<div class="clearfloats"></div>}
elsif html = process_image_tag(tag)
html
elsif html = process_file_link_tag(tag)