Skip to content

Releases: facelessuser/sublime-markdown-popups

1.9.0

31 Jul 23:06
Compare
Choose a tag to compare

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 the plugin 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

27 Jul 03:16
Compare
Choose a tag to compare

New

  • True relative sizes via Sublime 3119's rem units
  • Add template var sublime_version to check version in css files

1.7.6

25 Jul 21:42
Compare
Choose a tag to compare

Fixes

  • Clear out html padding and margins so we don't inherit it from color scheme files.

1.7.5

23 Jul 20:36
Compare
Choose a tag to compare

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

23 Jul 15:51
Compare
Choose a tag to compare

Fixes

  • Phantoms do not have borders by default.

1.7.3

07 Jul 14:35
Compare
Choose a tag to compare

Fixes

  • Fix ctypes leak of DC not getting released (#12)

1.7.2

06 Jul 19:07
Compare
Choose a tag to compare

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

06 Jul 06:09
Compare
Choose a tag to compare
  • Tweaks to relative font. Font appears to better resemble px than pt.

1.7.0

05 Jul 13:08
Compare
Choose a tag to compare

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

02 Jul 03:45
Compare
Choose a tag to compare

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