-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ST4: 4065+ HTMLSheet Updates #107
Conversation
@TheSecEng: please add to the above message
|
fix: strip comments fix: frontmatter because mdpopups wont support nl2br soon fix: trying to update non-existent previews
ST Build 4074 and mdpopups Code is fine as is, but requirement should be bumped. |
# FIXME: how do I choose how many workers I want? | ||
# - Does thread pool reuse threads or does it stupidly throw them out? | ||
# - (we could implement something of our own) | ||
executor = concurrent.futures.ThreadPoolExecutor(max_workers=5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is overkill for this sort of plugin.
) | ||
return "{}{}".format( | ||
"data:image/png;base64,", b64encode(image_content).decode("utf-8") | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you want to use asyncio instead of a ThreadPoolExecutor (which is IMO completely the wrong tool for this job).
Why did work on this stopped ? |
I just am in the middle of moving and what not. I’d be happy to get help with it. I’ll start working on it again when I have time. |
Should be a ST4 only branch
4074
Will update the Package Control Channel to support ST3 and ST4 tags and set appropriate ST4 version requirement
Major Changes
2markdown.py
in favor of Mdpopupsmarkdown2html.py
implementsImageParser.py
add_on_change
for monitoring theSETTING_DELAY_BETWEEN_UPDATES
to update the delay in real time. (Could be back ported)
MdlpEraseCommand
for erasing a view when called fromon_pre_close
Should probably be implemented on the ST3 branch to fix a bug in which EventListener doesn't have aedit
objectMarkdownLivePreview/MarkdownLivePreview.py
Lines 130 to 135 in ec27d98
PREVIEW_VIEWS
hash map to allow for multiple markdown previews (Could be back ported)syntax
setting that allows you to enable the plugin on different syntax files (Could be back ported)Fixes
fixes #94 - Fixed with ST4 Changes. Likely can fix in ST3 by using Mdpopups but not HTMLSheet
fixes #98 via facelessuser/sublime-markdown-popups@5c65d6f
fixes #103
fixes #104
fixes #106