Commits

hideki nara  committed a44266f

raw HTML can be specified with nodes.raw()

  • Participants
  • Parent commits ae9c10f

Comments (0)

Files changed (1)

File src/yummy/spx.py

 #        content[0].append( nodes.list_item('xxxx',classes=['yummy-item']) )
 #
 
-        blist = nodes.bullet_list()
-        for i in range(1, 6):
-            item = nodes.list_item()
-            for j in range(1, 4):
-                item += nodes.paragraph('', 'Item %s, paragraph %s.' % (i, j))
-            blist += item
-        content = [blist]
+#        blist = nodes.bullet_list()
+#        for i in range(1, 6):
+#            item = nodes.list_item()
+#            for j in range(1, 4):
+#                item += nodes.paragraph('', 'Item %s, paragraph %s.' % (i, j))
+#            blist += item
+        content = [
+            nodes.raw('','<h2>Links</h2>',format='html',),
+            nodes.raw('','<ul>',format='html',),
+            nodes.raw('','<li><a href="http://google.com">Google.com</a></li>',format='html',),
+            nodes.raw('','<li><a href="http://amazon.com">Amazon.com</a></li>',format='html',),
+            nodes.raw('','</ul>',format='html',),
+        ]
         node.replace_self(content)
-#        node.parent.replace( nodes.literal_block('hoge','hoge',lineno=3))
 
 #
 def setup(app):