Conditionally output markup for listing details. fixes #5.