]> sipb.mit.edu Git - ikiwiki.git/commitdiff
another way to do this: [[!format]]
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>
Mon, 17 Feb 2014 17:31:45 +0000 (13:31 -0400)
committeradmin <admin@branchable.com>
Mon, 17 Feb 2014 17:31:45 +0000 (13:31 -0400)
doc/forum/formating:_how_to_align_text_to_the_right.mdwn

index 2eaa29d02ed57960d21af70359536435e750a0ea..290982778f44791418275def83d4f337710228eb 100644 (file)
@@ -26,3 +26,26 @@ As in title, how to align text to the right?
 >>     .align_right { display: block ; text-align: right ; }
 
 > you may also like to remove the padding and margins since they will be provided by the enclosing block. -- fergus
 >>     .align_right { display: block ; text-align: right ; }
 
 > you may also like to remove the padding and margins since they will be provided by the enclosing block. -- fergus
+
+<div class="notebox">
+[[!format mdwn """
+This is my text with [a markdown link](#).
+
+Here's a *second* paragraph.
+"""]]
+</div>
+
+>> There is more than one way to do it. If [[plugins/format]] is enabled, then this:
+>>
+>>     <div class="notebox">
+>>     \[[!format mdwn """
+>>     This is my text with [a markdown link](#).
+>>
+>>     Here's a *second* paragraph.
+>>     """]]
+>>     </div>
+>>
+>> is rendered like the box in this page.
+>>
+>> (I'm using the `notebox` class used by the `note` template here, but you could
+>> use any class.) --[[smcv]]