Markdown2Pdf
Markdown2Pdf copied to clipboard
JTidy breaks unicode characters
Hey, not sure if this is still being developed but here it goes.
JTidy dependency used to convert HTML snippet to full page will malformat special characters (þ, æ, ð, á etc.) as it's bugged and uses UTF-16
Temporary hacky solution is to replace HtmlCleaner#clean with
return String.format("<html><head><meta charset=\"UTF-8\" /></head><body>%s</body></html>", input);