timonwong / OmniMarkupPreviewer

Sublime Text 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.
MIT License
500 stars 74 forks source link

Feature: Preview custom TeX commands #81

Open heidaga opened 8 years ago

heidaga commented 8 years ago

I am using OmniMarkupPreviewer to preview scientific Markdown files before compiling them into PDF and HTML using Pandoc.

I think it would be great to be able to include a "header"-like markdown file where one can define some custom TeX macros that can be loaded with all previewed files (which I already do when exporting using Pandoc)

For now I am defining these macros directly in my main Markdown file, e.g.: $\newcommand{\a}{AA}$ $\newcommand{\b}{BBB}$ ... The problem however is that these commands are previewed as blank space instead of just being ignored.