Markdown Monster
Couldn't Package HTML File when Saving as self contained HTML
Gravatar is a globally recognized avatar based on your email address. Couldn't Package HTML File when Saving as self contained HTML
  Jared B
  All
  Apr 29, 2019 @ 06:14pm

When I attempt to save my document as a self contained HTML file with embedded styles and images I get this error:

Couldn't package HTML file:

Could not find a part of the path C:\Users\jared\AppData\Local\Markdown Monster\PreviewThemes\Scripts\bootstrap\css\bootstrap.min.css

I've checked that path and the bootstrap folder doesn't exist in the location and I've re-installed Markdown Monster but the issue remains. I'm at version 1.16.12.

What can I do to resolve the issue?

Gravatar is a globally recognized avatar based on your email address. re: Couldn't Package HTML File when Saving as self contained HTML
  Rick Strahl
  Jared B
  Apr 29, 2019 @ 06:20pm

Hmmmm... Yes the latest release has removed the Bootstrap dependency from the Preview Themes, so bootstrap shouldn't be referenced any longer in the templates.

What Preview Template (the drop down on the right on the statusbar) are you using, or are you use a customized template? If so you either need to explicitly add bootstrap (if your custom template needs it) or you can remove it from your template.

If it's an existing template - which one?

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Couldn't Package HTML File when Saving as self contained HTML
  Jared B
  Rick Strahl
  Apr 29, 2019 @ 06:35pm

I downgraded to 1.15.8 and was able to do the export. I re-installed 1.16.12 and the export still worked. So it appears if a previous version was installed the bootstrap folder remains for newer versions to use.

My installation and document are mostly defaults. In the status bar I'm using Dark / vscodedark / Dharkan. I think the preview rendering theme is Dharkan which is what you're asking for.

Gravatar is a globally recognized avatar based on your email address. re: Couldn't Package HTML File when Saving as self contained HTML
  Rick Strahl
  Jared B
  Apr 29, 2019 @ 06:43pm

Jared,

Hmmm... Those files should get cleared out with an uninstall/reinstall unless you're using the portable installer.

Still not sure why that would be a problem in the latest version because the preview theme files would be updated to not include bootstrap, unless it's a custom theme.

Also not quite sure why it fails - if link is not available in theory it should just ignore it - there are dead links in the themes to override files that don't exist and those don't seem to harm the export either...

If you can duplicate it maybe you can package up your preview themes folder and send it - I'm curious why and how this might be breaking.

Thanks,

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Couldn't Package HTML File when Saving as self contained HTML
  Rick Strahl
  Jared B
  Apr 30, 2019 @ 03:03pm

So I took closer look and sure enough the Dharkan theme includes the link to Bootstrap which is what's failing for you. Not only that but the bad file reference causes the export to fail. That is actually a bug in that should not fail, which I fixed for the next release (1.15.16 and later).

The expected behavior is that if a related link cannot be retrieved the link should just be ignored and not be embedded.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Couldn't Package HTML File when Saving as self contained HTML
  Jared B
  re: Couldn't Package HTML File when
  May 6, 2019 @ 07:25am

Thanks for looking into this and posting an update. FWIW When I downgraded I simply installed over the newer version - I didn't uninstall.

I haven't had a chance to test the upgrade but will keep an eye out as I use the export to single page archive often as an easier way to sent page-less documentation to clients via email yet keeping it in a format that I can check-in/out of git.

Thanks!

© 1996-2024