For me the fenced code blocks weren't getting assigned full width. After some digging I found that Sublime Text's minihtml doesn't allow percentage-based units, which means any instances of width: 100%; in the CSS were failing. I then took a look at the code and found that using preview.viewport_extent() I could get the width of the window and output this to an embedded <style> tag in the HTML. This pull request contains my changes to MLPApi.py which fix the issue.
For me the fenced code blocks weren't getting assigned full width. After some digging I found that Sublime Text's
minihtml
doesn't allow percentage-based units, which means any instances ofwidth: 100%;
in the CSS were failing. I then took a look at the code and found that usingpreview.viewport_extent()
I could get the width of the window and output this to an embedded<style>
tag in the HTML. This pull request contains my changes toMLPApi.py
which fix the issue.