[[_]] float clearing tag experiment
This commit is contained in:
@@ -284,6 +284,12 @@ specified, default alignment is `left`.
|
|||||||
|
|
||||||
[[gollum.png|float]]
|
[[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
|
To specify a max-width, use the `width=` option. Units must be specified in
|
||||||
either `px` or `em`.
|
either `px` or `em`.
|
||||||
|
|
||||||
|
|||||||
@@ -729,3 +729,4 @@ ul.actions {
|
|||||||
padding: 0.25em;
|
padding: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.clearfloats { clear:both }
|
||||||
|
|||||||
@@ -236,6 +236,8 @@ module Gollum
|
|||||||
def process_tag(tag)
|
def process_tag(tag)
|
||||||
if tag =~ /^_TOC_$/
|
if tag =~ /^_TOC_$/
|
||||||
%{[[#{tag}]]}
|
%{[[#{tag}]]}
|
||||||
|
elsif tag =~ /^_$/
|
||||||
|
%{<div class="clearfloats"></div>}
|
||||||
elsif html = process_image_tag(tag)
|
elsif html = process_image_tag(tag)
|
||||||
html
|
html
|
||||||
elsif html = process_file_link_tag(tag)
|
elsif html = process_file_link_tag(tag)
|
||||||
|
|||||||
Reference in New Issue
Block a user