Clean up parenthetical link rendering in transform.js; adds an additional test.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>