must go first:
if "code-friendly" in self.extras:
text = self._code_friendly_strong_re.sub(r"\1", text)
text = self._code_friendly_em_re.sub(r"\1", text)
text = self._code_friendly_line_re.sub(r"\1", text)
+ text = self._code_friendly_underline_re.sub(r"\1", text)
else:
text = self._strong_re.sub(r"\2", text)
text = self._em_re.sub(r"\2", text)
text = self._code_friendly_line_re.sub(r"\1", text)
+ text = self._code_friendly_underline_re.sub(r"\1", text)
return text
# "smarty-pants" extra: Very liberal in interpreting a single prime as an
diff --git a/dynastie/templates/add_post.html b/dynastie/templates/add_post.html
index adc194c..05909a8 100755
--- a/dynastie/templates/add_post.html
+++ b/dynastie/templates/add_post.html
@@ -46,6 +46,7 @@ Available tags:
_italic_
italic
**bold**
bold
~~line through~~
line through
+~underline~
underline
>Citation
* Unordered list
diff --git a/dynastie/templates/edit_post.html b/dynastie/templates/edit_post.html
index 63444c1..70ad474 100755
--- a/dynastie/templates/edit_post.html
+++ b/dynastie/templates/edit_post.html
@@ -58,6 +58,7 @@ Available tags:
_italic_
italic
**bold**
bold
~~line through~~
line through
+~underline~
underline
>Citation
* Unordered list
diff --git a/dynastie/templates/generate.html b/dynastie/templates/generate.html
index 3bac384..f2bb919 100755
--- a/dynastie/templates/generate.html
+++ b/dynastie/templates/generate.html
@@ -19,6 +19,10 @@
{% endautoescape %}
{% endif %}
+
{% if posts|length == 0 %}
Any post available