Skip to content

Instantly share code, notes, and snippets.

@Shtucer
Created November 2, 2014 10:44
Show Gist options
  • Save Shtucer/cc1a83e51c6e74ac5f1a to your computer and use it in GitHub Desktop.
Save Shtucer/cc1a83e51c6e74ac5f1a to your computer and use it in GitHub Desktop.
--langmap=html:.htm.html
--regex-html=/]*>(.*)<\/html>/\1/r,html/
--regex-html=/]*>(.*)<\/body>/\1/b,body/
--regex-html=/]*>(.*)<\/h1>/\1/h,header/
--regex-html=/]*>(.*)<\/h2>/. \1/h,header/
--regex-html=/]*>(.*)<\/h3>/. \1/h,header/
--regex-html=/]*>(.*)<\/h4>/. \1/h,header/
--regex-html=/]*>(.*)<\/h5>/. \1/h,header/
--regex-html=/]*>(.*)<\/h6>/. \1/h,header/
--regex-html=/<([a-zA-Z][a-zA-Z0-9]*)[^>]*[ \t]+id='([^']+)'/\1#\2/o,object/
--regex-html=/<([a-zA-Z][a-zA-Z0-9]*)[^>]*[ \t]+id="([^"]+)"/\1#\o,object/
--regex-html=/<([a-zA-Z][a-zA-Z0-9]*)[^>]*[ \t]+class='([^']+)'/\1.\2/c,class/
--regex-html=/<([a-zA-Z][a-zA-Z0-9]*)[^>]*[ \t]+class="([^"]+)"/\1.\2/c,class/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment