New version out. Main things are that we now use the better CSS support that was introduced in 3119+. I added things like options to wrap your content in a div with a class so you can have CSS like .myplugin .myclass {}
etc. It still supports the legacy CSS for now, but that will be removed when the next ST beta drops.
Also supports templating in your HTML/Markdown content. You can send in template variables or configure your content template environment by changing the template tags or adding filters etc. Variables are available in both CSS and content under the plugin
object, but the template environment options only apply to your HTML/Markdown content. I donāt need people mucking with the CSS environment .
For those who donāt like the idea of me tweaking the default popup/phantom css, Iāve added a sublime setting to turn off the base formatting. You will loose things like definition lists etc. Put you will have a pure ST formatting then. The default color styling CSS has been stripped down significantly to allow to let Sublime 3119+ generate CSS or let the themes specify the colors. But it can be overriden by creating a mdpopups.css
in your user folder.
Thatās the main stuff, you can see the release notes here https://github.com/facelessuser/sublime-markdown-popups/releases/tag/1.9.0.
Most of my plugins that use mdpopups will be updated to better use this stuff moving forward.
As always, let me know of any bugs.