Today I exported a note to html, in order to share it with a colleague. It didn't work well.
The paths to the images were absolute. So, my colleague could not see the images when opened the html file in his computer. The solution was to edit the html and change all the paths from absolute to relative.
A cleaner solution would be to embed the images within the html itself. Pandoc does this very well, using the --self-contained option. Maybe you could learn from pandoc. This way, a single html file would contain everything.
You may wonder why I did not share the link to the note. Well, shared links, which point to a web page with the note, don't work well if the document has large tables, as the resulting page has wide margins and, thus, large tables don't fit well (they need to be scrolled).
Idea
Pere 27
Today I exported a note to html, in order to share it with a colleague. It didn't work well.
The paths to the images were absolute. So, my colleague could not see the images when opened the html file in his computer. The solution was to edit the html and change all the paths from absolute to relative.
A cleaner solution would be to embed the images within the html itself. Pandoc does this very well, using the --self-contained option. Maybe you could learn from pandoc. This way, a single html file would contain everything.
You may wonder why I did not share the link to the note. Well, shared links, which point to a web page with the note, don't work well if the document has large tables, as the resulting page has wide margins and, thus, large tables don't fit well (they need to be scrolled).
Link to comment
2 replies to this idea
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now