Revert "use rdiscount"

This reverts commit 6a5bab5fab0e04cc7d2cf48b53ac336f46e398a2.