Skip to content

Commit

Permalink
change formatting of definitions and sidebars
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Oct 24, 2015
1 parent 38b2aa3 commit 901516f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/writers/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,12 @@ def depart_section(self, node):
self.sectionlevel -= 1

def visit_sidebar(self, node):
self.new_state('| ')
self.sectionlevel += 1
self.new_state(0)

def depart_sidebar(self, node):
self.end_state()
self.sectionlevel -= 1

def visit_rubric(self, node):
self.visit_section(node)
Expand Down Expand Up @@ -525,7 +527,7 @@ def depart_term(self, node):
self.end_state(end=None)

def visit_definition(self, node):
self.new_state()
self.new_state(2)

def depart_definition(self, node):
self.end_state()
Expand Down Expand Up @@ -556,7 +558,7 @@ def depart_field_body(self, node):
self.end_state()

def visit_admonition(self, node):
self.new_state(0)
self.new_state(2)

def depart_admonition(self, node):
self.end_state()
Expand Down

0 comments on commit 901516f

Please sign in to comment.