Html generation customization

Is there a way to invoke a custom post-processing function when html pages are generated?

My case- when my markdowns in devanAgarI are converted into html, I want to automatically append the same content in a variety of other scripts/ writing systems (kannaDa, telugu etc…) for search engine indexing benefits. There are javascript and python libraries which do this conversion, and I am not averse to creating a go port if really needed.