aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttps://www.google.com/accounts/o8/id?id=AItOawkg1ahb9sRpZyQp1wuvxpk__x_6llBY5pE <Fergus@web>2014-02-18 07:14:27 -0400
committeradmin <admin@branchable.com>2014-02-18 07:14:27 -0400
commit974a786709aace32e1c914b18c93cafb9cf762b1 (patch)
treee558b4fc6cf88d78423754eec104fa094b88886f
parent3602eea8c242b7083ba01367094abf5d32f65c9c (diff)
downloadikiwiki-974a786709aace32e1c914b18c93cafb9cf762b1.tar
ikiwiki-974a786709aace32e1c914b18c93cafb9cf762b1.tar.gz
+1'ing 'smcv' idea above my previous entry as I think it's more consistent than mangling a span into a block element. Hope this is OK.
-rw-r--r--doc/forum/formating:_how_to_align_text_to_the_right.mdwn47
1 files changed, 24 insertions, 23 deletions
diff --git a/doc/forum/formating:_how_to_align_text_to_the_right.mdwn b/doc/forum/formating:_how_to_align_text_to_the_right.mdwn
index 290982778..e01eccb92 100644
--- a/doc/forum/formating:_how_to_align_text_to_the_right.mdwn
+++ b/doc/forum/formating:_how_to_align_text_to_the_right.mdwn
@@ -15,6 +15,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
>> <span class="right_align">
@@ -26,26 +50,3 @@ 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
-
-<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]]