]> sipb.mit.edu Git - ikiwiki.git/commitdiff
question or bug regarding toggle and list item
authorPaulePanter <PaulePanter@web>
Tue, 12 May 2009 14:13:07 +0000 (10:13 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 12 May 2009 14:13:07 +0000 (10:13 -0400)
doc/plugins/toggle/discussion.mdwn

index 5426a62fc820ae32fbae63f64b402eb832c0658a..ac22e7eb6046a1085f9d9d222e9d7354996cf30a 100644 (file)
@@ -15,3 +15,29 @@ but no success. How can I do it?
 
 
 ## [[bugs/Bug_when_toggling_in_a_preview_page]]
+
+----
+
+## Using toggle directives in a list item##
+Take this code snippet.
+
+    * [[!toggle id="test" text="test"]]
+      [[!toggleable id="test text="""toggle"""]]
+
+In the HTML-output the `ul` and `div` overlap.
+
+    <div id="content">
+    <ul>
+    <li><a class="toggle" href="#test.test">test</a>
+    <div class="toggleable" id="test.-test"></li>
+    </ul>
+    
+    <p>toggle</p>
+    
+    </div>
+    
+    </div>
+
+Fixing this manually the Javascript seems not to be working and `toggle` is shown unconditionally.
+
+I do not know if this is due to [[shortcomming with nested preprocessor directives|todo/nested_preprocessor_directives]] you mentioned in the beginning of this page. Maybe a note could be added to the main page of the plugin. --Paul