]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/forum/formating:_how_to_align_text_to_the_right.mdwn
Added a comment
[git.ikiwiki.info.git] / doc / forum / formating:_how_to_align_text_to_the_right.mdwn
index 2eaa29d02ed57960d21af70359536435e750a0ea..e01eccb92c4f6c98cb5b4687f3978a2cf4760ee1 100644 (file)
@@ -14,6 +14,30 @@ As in title, how to align text to the right?
 
 >> Thanks!
 
+-----
+<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]]
+
 -----
 > Doing this myself and noted that [[ikiwiki/markdown]] down does not allow the enclosure of block level elements directly; and thus we cannot switch the `span` suggested above for `div` in changing block level elements (not if you wish to include markdown, anyway).  For example, I want to create a paragraph (with markdown text) which is right aligned, and so add the following