Releases: facelessuser/sublime-markdown-popups
Releases · facelessuser/sublime-markdown-popups
1.9.0
Sublime Markdown Popups 1.9.0
- NEW: wrapper_class option to create your popup content and wrap it in a div with a class in one shot. Great for ST 3119+ which has better CSS support.
- NEW: More stripped down default styling.
- NEW: CSS for 3119+ now has better styling. We also now wrap generate the body with the
mdpopups
class. And CSS references it like so.mdpopups h1 {}
etc. As 3119+ supports this CSS now, it is recommended for that developers wrap their content and reference their classes like.myplugin .myclass {}
moving forward. Older versions of sublime will get the old legacy CSS, albeit stripped down more. - NEW: Added
mdpopups_version
template variable. - NEW: Added setting
mdpopups.default_formatting
for those who want to use stock HTML formatting. Keep in mind you will lose things like definition lists etc. - NEW: Added
template_vars
option so you can send plugin variables to be used in your CSS template. Variables are found under theplugin
object.template_vars
are also available in HTML/Markdown content and found under the same object. CSS filters are not available to the HTML/Markdown template environment. They are separate environments. - NEW:
template_env_options
this applies only to HTML/Markdown templating. This allows you to do things such as as change the template tags or add your own filters etc.
1.8.0
New
- True relative sizes via Sublime 3119's rem units
- Add template var sublime_version to check version in css files
1.7.6
Fixes
- Clear out html padding and margins so we don't inherit it from color scheme files.
1.7.5
Fixes
- Don't add padding to body by default to phantoms. Plugins should be able to control this with custom div with classes. This is important as we are inserting inline into code, and depending on the scenario, different behavior may be desired.
1.7.4
Fixes
- Phantoms do not have borders by default.
1.7.3
1.7.2
Fixes
- Detect font scaling on windows and provide a way to override/disable it if necessary via a setting
mdpopups.font_scale
. Also,mdpopups.font_scale
can be used for OSX and Linux to manually set font scaling.
1.7.1
- Tweaks to relative font. Font appears to better resemble px than pt.
1.7.0
New
- New filter added to template which can allow size to be calculated relative of the current view's font size for pt, em, and px.
- Fonts in popups and phantoms are now calculated based on current view's font size.
- Added color_box_raw to API to return the raw byte string when creating a color box
- Added tint to API to tint an image with a color and return the image base64
encoded in an HTML element. - Added tint_raw to API to tint an image with a color and return the raw byte string when creating a tint.
- Added scope2style to retrieve style of a scope of current loaded color scheme.
- Add debug setting now must be set to a level instead of just True or False.
- Tweaks to default CSS.
1.6.3
Fixes
- Because I've been sloppy, I forgot to update internal rev to 1.6.2, so let's release again to get 1.6.3 right