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

Pandoc self-contained does not properly handle links to fonts in css #2737

Closed
humburg opened this Issue Feb 24, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@humburg

humburg commented Feb 24, 2016

With Pandoc 1.16.0.2 the following conversion attempt fails:

echo '<link rel="alternate stylesheet" type="text/css" href="https://netdna.bootstrapcdn.com/bootswatch/3.0.0/amelia/bootstrap.min.css" title="Amelia" media="screen"></link>' > test.md
pandoc test.md --to html --from  markdown --self-contained --output out.html

producing this error:

pandoc: Could not fetch //fonts.googleapis.com/css?family=Lobster|Cabin:400,700
InvalidUrlException "//fonts.googleapis.com/css?family=Lobster%7CCabin:400,700" "Invalid URL"

Using pandoc 1.13.2 this seems to work as expected. Related to #1477

@jgm

This comment has been minimized.

Owner

jgm commented Feb 24, 2016

For posterity, the bug was introduced by ce55834
which was intended to prevent pandoc from treating C:/ in a Windows path as a protocol.
It affects 1.16..1.16.0.2.

@humburg

This comment has been minimized.

humburg commented Feb 24, 2016

Thanks @jgm, that was very quick work.

c-forster pushed a commit to c-forster/pandoc that referenced this issue Mar 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment