workarounds to be more compatible with markdown=js