Skip to content

Instantly share code, notes, and snippets.

@joshuaadickerson
Created March 13, 2016 18:31
Show Gist options
  • Save joshuaadickerson/9f7b72916c20b4b58f39 to your computer and use it in GitHub Desktop.
Save joshuaadickerson/9f7b72916c20b4b58f39 to your computer and use it in GitHub Desktop.
NEXT_TAG_MUST_BE
TAGS_ONLY_CONTENT
REMOVE_EMPTY
PARAM_IS_URL
EQUALS_IS_URL
NO_PARSE
FILTER_CONTENT
FILTER_EQUALS
FILTER_PARAM
BLOCK_LEVEL
ADD_PARENT_IF_MISSING
REMOVE_EXTRA_CLOSING
----
b
REMOVE_EMPTY
code
NO_PARSE
BLOCK_LEVEL
color
FILTER_EQUALS
search: '~\[color=(?:#[\da-fA-F]{3}|#[\da-fA-F]{6}|[A-Za-z]{1,20}|rgb\(\d{1,3}, ?\d{1,3}, ?\d{1,3}\))\]\s*\[/color\]~'
replace: ''
li
ADD_PARENT_IF_MISSING
list
list
BLOCK_LEVEL
TAGS_ONLY_CONTENT
NEXT_TAG_MUST_BE
li
nobbc
NO_PARSE
quote
BLOCK_LEVEL
REMOVE_EXTRA_CLOSING
REMOVE_EMPTY
PARAMS
link
PARAM_IS_URL
s
REMOVE_EMPTY
table
BLOCK_LEVEL
TAGS_ONLY_CONTENT
NEXT_TAG_MUST_BE
tr
td
BLOCK_LEVEL
ADD_PARENT_IF_MISSING
tr
th
BLOCK_LEVEL
ADD_PARENT_IF_MISSING
tr
tr
BLOCK_LEVEL
TAGS_ONLY_CONTENT
NEXT_TAG_MUST_BE
td
th
ADD_PARENT_IF_MISSING
table
url
EQUALS_IS_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment