I'm trying to let users to edit certain text on some pages of my website. And, I want to maintain an Edit History of them so changes can easily be reverted back. So basically, I'm just trying to implement/integrate a super light-weight wiki into my existing website. All I need for it is a revision control and possibly a markdown support.
So, I'm wondering if any existing library or code exist for this kind of thing. If not, would it be advisable to implement the revision control using diff from scratch?