HomePhorge

Maint: Make indentation for markdown definition lists more readable and reliable
c15d997379a8Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Maint: Make indentation for markdown definition lists more readable and reliable

Previously, we indented subsequent lines of definition lists with a four-space
hanging indent. This ensured that multi-paragraph DD elements would work, but
was unsightly. This commit changes the hanging indent for definitions to 2
spaces, which also works but is much more legible before being processed into HTML.

This commit also adds sanitization (via the scrub method) for definition text.
Since scrub() is idempotent, and since the consequences of text with
unreliable indentation making it into a DD element are so annoying, it makes
sense to hedge our bets when creating the element.

Test update included.

Details

Event Timeline

nfagerlund <nick.fagerlund@gmail.com> committed rPUc15d997379a8: Maint: Make indentation for markdown definition lists more readable and reliable (authored by nfagerlund <nick.fagerlund@gmail.com>).Dec 15 2011, 8:25 PM