URL utilities for the markdown-it parser.
The original is in node.js; this is a Python port.
