# This file describes the style of user message formatting used by the current # ACSIM frontend. ACSIM uses Markdown-esque formatting by default, but # you can change it to any formatting type (if you can write regex correctly). # The first string in the pair is an HTML template which defines the or # any other block formatted text will be placed in. Which text is picked # is based on the names of regex match groups (see below). The second string is a # regex that matches text by characters (such as ** or _) that enwrap it. # Keep in mind that order of pairs matters! If messages are formatted # incorrectly, try switching the order up. The recommended order is provided here. --- # block quotes (greentext) '${nl}${text}${nl}': '(^|(?\n))(?>[^\n]+)' # horizontal rules '${nl_head}
${nl_trail}': '(?\r(\s|\r)+)(?[\*|_|\-]{3})(?\r(\s|\r)+)' # headings. Markdown headings 3-6 are compressed into HTML's

'

${head_text}

': '(^|(\r(\s|\r)+))#\ (?.+)(\r(\s|\r)+)' '

${head_text}

': '(^|(\r(\s|\r)+))##\ (?.+)(\r(\s|\r)+)' '

${head_text}

': '(^|(\r(\s|\r)+))#{3,6}\ (?.+)(\r(\s|\r)+)' # 2+ and single newlines. 2+ newlines are collapsed into two '

': '(\r(\s|\r)+)' '
': '(\r(\s|\r){2,})' # links to other messages and external websites '${board}>${msg}${dotted}': '(?\w{1,16})>(?\d+)(?\.(?\d+))?' '${text}': '(?https?:\/\/[\w-]*?\.[a-z]{2,}(\/\S*)?)' # misc text formatting '${text}': '`(?[^`]*)`' '${text}': '\*\*(?[^*]*)\*\*' '${text}': '\*(?[^*]*)\*' '${text}': '~~(?[^~]*)~~' '${text}': '\|\|(?[^\|]*)\|\|'