From d5a869348feb985c3668bf20f6e787b2886b66bb Mon Sep 17 00:00:00 2001 From: armandg Date: Sat, 7 Dec 2019 13:01:54 +0100 Subject: [PATCH] Added a Markdown cheat sheet in instructions when commenting/posting/editing --- tuir/docs.py | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/tuir/docs.py b/tuir/docs.py index efe05f5..af4be1a 100644 --- a/tuir/docs.py +++ b/tuir/docs.py @@ -149,22 +149,40 @@ FOOTER_INBOX = """ TOKEN = "INSTRUCTIONS" +FORMATTING_HELP = """Formatting help: +Text formatting: +_italic_ / *italic* +__bold__ / **bold** +___bold-italic___ / ***bold-italic*** +~~strikethrough~~ + +Special formatting: +>!spoilers!< +^superscript / ^(superscript) +`code` (or indent each line with four spaces) +> Quote someone else +[link text](link url)""" + REPLY_FILE = """ -""".format(token=TOKEN) +""".format(token=TOKEN, formatting_help=FORMATTING_HELP) COMMENT_EDIT_FILE = """ {{content}} -""".format(token=TOKEN) +""".format(token=TOKEN, formatting_help=FORMATTING_HELP) SUBMISSION_FILE = """ -""".format(token=TOKEN) +""".format(token=TOKEN, formatting_help=FORMATTING_HELP) SUBMISSION_EDIT_FILE = """ {{content}} -""".format(token=TOKEN) +""".format(token=TOKEN, formatting_help=FORMATTING_HELP) MESSAGE_FILE = """ -""".format(token=TOKEN) +""".format(token=TOKEN, formatting_help=FORMATTING_HELP) OAUTH_ACCESS_DENIED = """\

Access Denied