Found that redcarpet is a ruby implementation of sundown. There are useful implentations in other languages which I plan on making PoC code for