diff --git a/present/markdown.py b/present/markdown.py index d26a940..18a202e 100644 --- a/present/markdown.py +++ b/present/markdown.py @@ -30,7 +30,9 @@ class Heading(object): @property def size(self): if self.obj["level"] == 1: - return 6 + f = Figlet() + text = self.obj["children"][0]["text"] + return len(f.renderText(text).splitlines()) elif self.obj["level"] == 2: return 2 else: