You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed OmniMarkupPreviewer on Sublime 3 through Package Control. Tried Ctrl+Alt+O on a markdown file which previewed the file in browser as expected.
Then I tried to export to HTML using Ctrl+Alt+X which didn't work:
error: Error while exporting, please check your console for more information.
OmniMarkupPreviewer: [ERROR] Error while exporting
Traceback (most recent call last):
File "C:\SublimeText3\Data\Packages\OmniMarkupPreviewer\OmniMarkupPreviewer.py", line 169, in run
html_content = RendererManager.render_view_as_html(view)
File "C:\SublimeText3\Data\Packages\OmniMarkupPreviewer\OmniMarkupLib\RendererManager.py", line 329, in render_view_as_html
return template(setting.export_options['template_name'],
KeyError: 'template_name'
Copying the "export_options" from OmniMarkupPreviewers default settings to the User settings seems to have solved the problem.
A possibly related discrepancy:
In OmniMarkupPreviewer.sublime-settings it is mentioned that templates should be placed into ${packages}/User/OmniMarkupPreviewer/templates/. In my installation OmniMarkupPreviewer not installed in the User folder but to ${packages}/OmniMarkupPreviewer while ${packages}/User/OmniMarkupPreviewer was empty.
The text was updated successfully, but these errors were encountered:
I just installed OmniMarkupPreviewer on Sublime 3 through Package Control. Tried Ctrl+Alt+O on a markdown file which previewed the file in browser as expected.
Then I tried to export to HTML using Ctrl+Alt+X which didn't work:
Copying the
"export_options"
from OmniMarkupPreviewers default settings to the User settings seems to have solved the problem.A possibly related discrepancy:
In
OmniMarkupPreviewer.sublime-settings
it is mentioned that templates should be placed into${packages}/User/OmniMarkupPreviewer/templates/
. In my installation OmniMarkupPreviewer not installed in theUser
folder but to${packages}/OmniMarkupPreviewer
while${packages}/User/OmniMarkupPreviewer
was empty.The text was updated successfully, but these errors were encountered: