Better format for file metadata in TXT format

This commit is contained in:
str4d
2016-04-01 11:28:00 +00:00
parent 25cf116919
commit 28b51fbb42

View File

@ -75,6 +75,9 @@ def spec_show(name, txt=False):
content = content.replace(']_', '] ')
# Change highlight formatter
content = content.replace('{% highlight', "{% highlight formatter='textspec'")
# Other string changes
content = content.replace(' :lastupdated', '- Last updated')
content = content.replace(' :accuratefor', '- Accurate for')
# render the post with Jinja2 to handle URLs etc.
rendered_content = render_template_string(content)