insert script for markdown equation support