question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

exported presentation has localhost links

See original GitHub issue

i cannot find a setting that turns this into the correct relative path - thinking that should just work since all the 3rd party resources are included in the export folder.

e.g. export/index.html

<link rel="stylesheet" href="http://localhost:43639/libs/highlight.js/11.3.1/styles/monokai.min.css">

this makes it hard to use with github-pages or similar (although it sometimes works accidentally when you have the reveal server running locally)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
evilzcommented, Mar 8, 2022

Release in 4.1.2

0reactions
gVallverducommented, Feb 17, 2022

I run into the same issue. But there is also something more about data-background-image.

Here are the issues, if I try to explain (I am not very skilled about server …)

  • I did a presentation in markdown and it displays very well in vscode.
  • If I copy/paste the link and look at the presentation in a browser it is ok, let’s say https://localhost:57795
  • Now I try to export the presentation as html file and open the index.html file in the browser. Two different things happen.

First issue

If I shut down vscode or the presentation (the server, https://localhost:57795), on the browser, the presentation does not display correctly. But, as said in the previous comments, if you replace the https://localhost:57795 by "" or the baseurl of you web page. It works again.

Second issue

The second issue is about data-background-image. Let’s say you have the following markdown code:

--

## a title

<!-- .slide: data-background="img/image.jpg" -->

--

When you export the presentation as html, the produced html code is the following :

<section data-background="img/image.jpg">
<!-- .slide: data-background="img/image.jpg" -->
<h2>a title</h2>
</section>

Whatever the state of the server in vscode, if you open the presentation from index.html in a browser, the background image is not displayed. Contrary to the previous solution, you have to add the https://localhost:57795 url to make it works (assuming this server/address is still running in vscode). Actually it works (in all case) if you put, as background, a picture from an url but it does not work if you use a local file. That is why it works if you add the https://localhost:57795 address.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue In Links after migrating from Live server to Localhost ...
I used ALL IN ONE WP MIGRATION to export the data from live server. I replaced the url during export process. http://www.example.com/ to...
Read more >
How to Move a WordPress Site from Localhost to a Live Server
Export the database from localhost. An essential part of your WordPress installation is the database. This is where all of your website data...
Read more >
Why does MaterialUI Drawer component link add localhost ...
I am trying to add my LinkedIn profile to the drawer component and when I click I get the following in the search...
Read more >
How to Transfer a Joomla site from localhost to your Live Server
Follow along as I show your how to transfer your Joomla site from your localhost to your live web hosting account.Join the discussion...
Read more >
How To Move WordPress From Localhost To Live Server
Step #1: Export The Local Database. First off, we will download the database of our local WordPress installation. This is usually done via ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found