rework list items & section partitioning

- major rework of list items to handle nested levels and blocks correctly
- bullet length should not dictate nesting level of lists, rather how they alternate
- honor all variations of number styles on ordered lists
- add much more robust tests for lists, make the tests more clear
- take into account blocks when partitioning sections (headings can't be inside blocks)
- skip over check for section when lexing a block
- lots 'o tomdoc
- strip indentation on literal paragraphs correctly (remove indentation equal to least indented line)
- rework how list lines are collected to be easier to read, more robust and more compliant
- change where list continuations are calculated (localize to the list line collector)
fix call to ord in ruby 1.8.7
Merge pull request #45 from mojavelinux/lists-and-section-rework

rework list items & section partitioning
overhaul of inline text parsing & substitutions

- death to htmlify, no more hardcoded html!
  inline text is rendered using templates
- create a common parent AbstractNode for all structured elements
- create a common parent AbstractBlock for section, block and list item
- create an Inline element for inline rendering
- correct quoted text substitutions to be fully compliant w/ AsciiDoc
- implement inline image macro
- implement inline passthrough macros (using extract & restore)
- add template for line break & callout
- add replacements substitution (for symbols like copyright, trademark, etc)
- substitute attributes in attribute values
- pull regexs for inline parsing into Asciidoctor module
- more robust regex for anchors and attribute lines
- double-line heading should not be allowed to start w/ a dot
- load tilt lazily (don't need to load if using built-in templates)
- remove import of unused cgi library
- optimized some regexs
- lots 'o tests
- more TomDoc
need to use entity for + replacement to avoid interpretation
Merge pull request #46 from mojavelinux/inline-text-and-subs

Death to htmlify! Overhaul of inline text parsing & substitutions
link to the commit history of the seed contribution
add Dan Allen to author list
Add DocBook backend templates + loads of improvements

- make templates for docbook45 backend
- move backend templates to backends/ folder
- load backend templates lazily (based on backend attribute)
- namespace backend templates to avoid conflicts
- extend backend templates from a base template
- add view property to template class
- change InlineLink to InlineAnchor and assign type (:link or :xref)
- simplify shorthand methods (e.g., define attribute) in template classes
- set default backend to html5
- set backend attribute family (backend-*, basebackend, etc)
- set docdate and doctime attributes (match local* w/o file ref)
- prevent Reader from overriding attributes passed to Document.new
- fix list continuation bug in outline and labeled lists
- fold first paragraph properly in outline lists; document in TomDoc
- add convenience methods to String (trim, nuke)
- add TomDoc to methods added to String
- add tests for String monkeypatches
- fix compliance of attribute continuations in Reader
- perform attribute substitutions on document attributes and attribute lists
- apply normal subs to single-quoted attribute values
- cleanup how substitutions are called
- don't need Asciidoctor:: prefix in Substituter
- honor line pass: macro in document attribute value
- move regexs in Reader to Asciidoctor module
- use %r{} syntax to make some regex easier to read
- fix order of replacements
- add ellipsis and single quote replacements
- add space, quot and apos to instrinsics
- move Substituters mixin to AbstractBlock
- make Document an AbstractBlock
- use blocks instance variable in Document instead of elements
- document should store text of reference to match how docbook works
- allow Document.new to be called w/ no arguments
- rename level* regex to section*
- loads of tests to verify numerous compliance checks and for new functionality
- more TomDoc
Merge pull request #49 from mojavelinux/initial-contribution-ref

minor: link to the commit history of the seed contribution
remove string monkeypatching, process template class in renderer
fix warnings
Merge pull request #50 from mojavelinux/docbook-templates

Add DocBook backend templates + loads of improvements