block: - title: grabAttribute # after: main_block before: paragraph match: /^( {0,3}\{\*?:.*?\}\s*)$/ - title: tableWithAttribute before: table html: start_mark: "\n" end_mark:
after: html_comment match: |- /^[ ]{0,3} (?:\[[|!].*?\|\]) \s*(?:\{\*?:.*?\})?\s* (?:(?:\[[|!].*?\|\])\s*(?:\{\*?:.*?\})?\s*)*/mx subparse: table - rescan - title: rowAttribute match: /<(li)(.*?)> ((?:.(?!<\1))*?) \s*\{\*:\s*((?:\w+=".*?")(?:\s+\w+=".*?")*)\s*\}[ ]*/mx html: replace: '<\1\2 \4>\3' - title: attributeInsideAtEnd match: /<(\w+)(.*?)>((?:.(?!<\1))*?)[ ]*\{:\s*((?:\w+=".*?")(?:\s+\w+=".*?")*)\s*\}[ ]*<\/\1>/mx html: replace: '<\1\2 \4>\3' - title: attributeAfterBlock match: /<(\w+)(.*?)>((?:.(?!<\1))*?)<\/\1>\s*\n[ ]*\{:\s*((?:\w+=".*?")(?:\s+\w+=".*?")*)\s*\}[ ]*(\n)?/mx html: replace: '<\1\2 \4>\3\5' - title: attributeAfter match: /<(\w+)(.*?)>((?:.(?!<\1))*?)<\/\1>\s*\{:\s*((?:\w+=".*?")(?:\s+\w+=".*?")*)\s*\}/mx html: replace: '<\1\2 \4>\3'