Releases: revolunet/sublimetext-markdown-preview
Rename settings.py to markdown_settings.py
1.1.10 rename settings.py to markdown_settings.py
New Extensions and Modifications
These extensions were just for fun, but I actually like using them. Feel free to reject any you don't think we need.
Insert Extensions
Use ^^test^^
notation to get test
You can now escape the ^
character as well.
Modified Delete Extension
You can now escape the ~
character.
Admonition Icon Extension
Adds an icon span to admonitions that can be styled with CSS. Default CSS uses a stripped down font-awesome
Also if admonition class is not recognized, it will be styled in simple gray.
Progress Bar Extension
Allows the creation of a progress bar with the following notations:
- Percentage:
[== 35% optional label]
- Division:
[== 37.5/500 optional label]
Default styling is a flat candy-striped bar, but there is included CSS for animated candy-stripping and a glossy bar. You can access one or more of these additional stylings by adding the classes when enabling the extension progressbar(addclasses=candystripe-animate gloss)
. Also by default, progress bar extension adds classes to allow for different stylings of 0-20%, 21-40%, 41-60%, 61-80%, 80-99%, 100%. This can be turned off by defining the extension as progressbar(levelclass=False)
. Additionally you can change these settings with this inline notation [==50% MyLabel]{addclasses="additional classes" levelclass="false"}
. When level classes are disabled, the default color is blue.
Other
- Selection is now blue and doesn't conflict with mark tag highlighting.
- Caution admonitions are now orange and notes are now yellow.
- Test file has been updated.
Fix for meta extension list return format
1.1.8 Fix for meta extension list return format
Fix unicode issue in frontmatter data
1.1.7 Fix unicode issue with frontmatter data
Better Yaml/Meta Data Support and Other Small Fixes
Better YAML support
- Added PyYAML to handle parsing yaml frontmatter
- Added the following built in yaml keys
- basepath: An absolute path to configure the relative paths for images etc. (for when the markdown is supposed to reference images in a different location.)
- references: Can take a file path or an array of file paths for separate markdown files containing references, footnotes, etc. Can be an absolute path or relative path. Relative paths first use the source files directory, and if they the file is not found, it will use the
basepath
setting. - destination: This is an absolute file path or relative file path for when the markdown is saved to html via the build command or the
Save to HTML
command. Relative paths first use the source files directory, and if they the file is not found, it will use thebasepath
setting. - settings: This is a dictionary where you can override settings that are in the settings file.
- title: set the title in the html header.
- All other entries in the yaml frontmatter will be placed in
meta
tags in the header<meta name="key" content="value1,value2">
. These entries should be single values or single dimension arrays.
Meta Extension Support
- Meta data is written to the html header
- Title is also set when specified.
- YAML frontmatter items will override specific meta data items if both specified
Other Stuff
- Add a file for visual ensuring rendering looks goods (better than nothing until a test suite is developed)
- Simplify CSS rules (strip out unnecessary references etc.)
- Pre blocks are scrollable when they overflow (like github etc.)
- Tables now scroll when they overflow
- Fix for in CSS for embedded fonts and recent chrome builds
- Fix for issues when smarty and attr_list are both enabled
Fix for Github emoji and code tag padding
Bug Fixes and Improvements
Issues Resolved:
- Fix yaml stripping regex overly greedy behavior (Issue #180)
- Add option to use multimarkdown parser (Issue #172)
- Add command to save to source directory (will export to a view and issue a save as command if source does not exist on disk) (Issue #65)
- Override build behavior with any target using the default parser (Issue #175)
- Setting to output a very stripped down HTML. Outputs just the tags. No head or body tags and css, ids, styles, or classes (Issue #176)
- Optional feature to inject header ids in to the Github API return to ensure links and header anchors actually work (Issue #208)
Features, Tweaks and Fixes
- Multiline tasklist items are now all aligned proper
- Minor CSS tweaks
- abbr tags cusor changes on mouse over
- tables are explicitly set to their color (this is so they look good embedded in an admontion block)
- remove critic markup css (which I didn't mean to add)
- Magiclink now can find things like www.example.com and can also find email addresses
- Autoreload can be disabled
- Add enable admonition with CSS support. Admonitions can be created with any kind of user defined class, but some defaults are provided:
- Notes (grey)
- Attention (green)
- Hint (blue)
- Caution (yellow)
- Danger (red)
Fix unicodedata import when it can't be found
1.1.3 Fix unicodedata import on ST2 Windows
Fix headeranchor return
Messed up last patch...
Fix for headeranchor when tag is None
handle case in headeranchor when a tag has text that is None