diff --git a/boards/mdx_neboard.py b/boards/mdx_neboard.py --- a/boards/mdx_neboard.py +++ b/boards/mdx_neboard.py @@ -18,6 +18,7 @@ REFLINK_PATTERN = re.compile(r'^\d+$') MULTI_NEWLINES_PATTERN = re.compile(r'(\r?\n){2,}') ONE_NEWLINE = '\n' REGEX_URL = re.compile(r'https?\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?') +LINE_BREAK_HTML = '
' class TextFormatter(): @@ -50,8 +51,8 @@ class AutolinkPattern(): class QuotePattern(TextFormatter): - name = 'q' - preview_left = '' + name = '>q' + preview_left = '' preview_right = '' format_left = '[quote]' @@ -161,7 +162,10 @@ def render_quote(tag_name, value, option if source: result = '[thread]123[/thread] — {% trans 'Add post to this thread' %}
[s]{% trans 'Strikethrough text' %}[/s]
[comment]{% trans 'Comment' %}[/comment]
-[quote]{% trans 'Quote' %}[/quote]
+[quote]>{% trans 'Quote' %}[/quote]
+[quote source=src]
{% trans 'You can try pasting the text and previewing the result here:' %} {% trans 'Preview' %}
{% endblock %}