Skip to content
Snippets Groups Projects
Commit bf2377ac authored by bootstraponline's avatar bootstraponline
Browse files

Merge pull request #662 from lemonsqueeze/clearfloats

[[_]] float clearing tag experiment
parents fe706c18 624e3243
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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`.
 
Loading
Loading
Loading
Loading
@@ -729,3 +729,4 @@ ul.actions {
padding: 0.25em;
}
 
.clearfloats { clear:both }
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment