diff options
author | Thomas Touhey <thomas@touhey.fr> | 2019-07-30 13:35:49 +0200 |
---|---|---|
committer | Thomas Touhey <thomas@touhey.fr> | 2019-07-30 13:35:49 +0200 |
commit | 61c50224ec89c582d3c5b40fc4fbd177a179c6d1 (patch) | |
tree | 9e69bced4239e0921eaf65da949a060ac68ab4fe /textoutpc/builtin/_Title.py | |
parent | d0f9f0ae834c75101e1b64224d9852b5751175fe (diff) |
Added link_target option support.
Diffstat (limited to 'textoutpc/builtin/_Title.py')
-rwxr-xr-x | textoutpc/builtin/_Title.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/textoutpc/builtin/_Title.py b/textoutpc/builtin/_Title.py index 05d12ff..0f744e9 100755 --- a/textoutpc/builtin/_Title.py +++ b/textoutpc/builtin/_Title.py @@ -21,8 +21,8 @@ class TitleTag(_BlockTag): raw = True def prepare(self, name, value): - level = self.tweak("title_level", "1") - if level[0] == "h": + level = self.tweak("title_level", "1").casefold() + if isinstance(level, str) and level[0] == "h": level = level[1:] level = int(level) assert 1 <= level <= 5 |