Commits

camlspotter committed 0f69c7e

fix for bold

  • Participants
  • Parent commits f1a9099

Comments (0)

Files changed (1)

extensions/hatenaWriter.py

         self.level = level
 
     def to_string(self, indent):
-        return '*' * self.level + ' ' + Block.try_inline_internal(self)
+        return '*' * min(3, self.level) + ' ' + Block.try_inline_internal(self)
 
 class Par(Block):
     def __init__(self, parent):
 #        pass
 
     def visit_emphasis(self, node):
-        self.add_text('<it>')
+        self.add_text('<span class="deco" style="font-style:italic;">')
     def depart_emphasis(self, node):
-        self.add_text('</it>')
+        self.add_text('</span>')
 
 #    def visit_literal_emphasis(self, node):
 #        self.add_text('<it>')
 #        self.add_text('</it>')
 
     def visit_strong(self, node):
-        self.add_text('<b>')
+        self.add_text('<span class="deco" style="font-weight:bold;">')
     def depart_strong(self, node):
-        self.add_text('</b>')
+        self.add_text('</span>')
 
 #    def visit_abbreviation(self, node):
 #        self.add_text('')