mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-29 20:44:24 +00:00
Change spans to sub and sup markups
This commit is contained in:
parent
5f1e4ebede
commit
daee59f772
@ -8,10 +8,10 @@ class SithRenderer(Renderer):
|
|||||||
return reverse('core:file_detail', kwargs={'file_id': id}) + suffix
|
return reverse('core:file_detail', kwargs={'file_id': id}) + suffix
|
||||||
|
|
||||||
def exposant(self, text):
|
def exposant(self, text):
|
||||||
return """<span class="exposant">%s</span>""" % text
|
return """<sup>%s</sup>""" % text
|
||||||
|
|
||||||
def indice(self, text):
|
def indice(self, text):
|
||||||
return """<span class="indice">%s</span>""" % text
|
return """<sub>%s</sub>""" % text
|
||||||
|
|
||||||
def underline(self, text):
|
def underline(self, text):
|
||||||
return """<span class="underline">%s</span>""" % text
|
return """<span class="underline">%s</span>""" % text
|
||||||
|
Loading…
Reference in New Issue
Block a user