gettalong/kramdown — pull request #18 by gioele (2012-08-29 17:17:30+00:00)
Title: Use numeric entities as default fallback if `:as_code` is not available

This series of commits makes `:numeric` the default fallback for entity output in case it is not possible to output entities `:as_code` (only possible in MRI 1.9 and VM with `String#encode`).

The current default fallback is `:symbolic`. Symbolic entities are allowed only in loose HTML; XHTML and XML documents cannot use them without preprocessing or workarounds. Numeric entities, on the other hand, can be used without problems HTML, XHTML and XML without modifications.

Please note that I have not changed the associated tests; I do not know if you prefer to keep the existing tests and add `.options` files or change the expected texts.