Skip to content
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

Windows: Could not fetch... and encoding problems using slidy #1896

Closed
KaiHufenbach opened this issue Jan 22, 2015 · 3 comments
Closed

Windows: Could not fetch... and encoding problems using slidy #1896

KaiHufenbach opened this issue Jan 22, 2015 · 3 comments
Labels

Comments

@KaiHufenbach
Copy link

Hi,

I am trying to use pandoc on Windows 7, latest version 1.13.2,

Used the following MarkDown for testing purposes. I also attached pictures of outputs.
The following is recognizable:

  • Special chars seem to break, using slidy
  • Using slidy with --self-contained is not even possible due to download problems (tested link in browser, works, also deactivated windows firewall)
% Test

# Test
öäü

# Test
öäü


# Test 


<!-- 

Breaks with:
pandoc.exe: Could not fetch http://www.w3.org/Talks/Tools/Slidy2/styles\../graph
ics/nofold-dim.gif
StatusCodeException (Status {statusCode = 404, statusMessage = "Not Found"}) [("
    pandoc test.md -o test_slidy.html -t slidy --self-contained --smart 

Does not provide any slides, also breaks special Characters:
    pandoc test.md -o test_slidy.html -t slidy --smart 

Works!
    pandoc test.md -o test.html -t html --self-contained --smart 
-->

test_slidy html
test html

@KaiHufenbach KaiHufenbach changed the title Windows: Could not fetch Windows: Could not fetch... and encoding problems using slidy Jan 22, 2015
@mpickering
Copy link
Collaborator

For #2 you might need to set your browser encoding to UTF-8.

I suspect that your problem is that the slidy utl is protocol agnostic. (ie starts with //) This means that the same url can be used for http or https but fails to render locally. You can try adding a protocol and then it might work correctly.

@KaiHufenbach
Copy link
Author

Inserted exactly this URL to Internet Explorer: http://www.w3.org/Talks/Tools/Slidy2/styles\../graphics/nofold-dim.gif
Which works perfectly. Sorry, but I could not follow exactly what you mean. In my *.md there is no other URL.

I checked the *_slidy.html which looks like:

It seems the slidy html is not completed, so changing the browser settings to utf-8 does would not have any effect (and even do not bring slidy). On the other hand the ordinary HTML output works.

<div id="test" class="slide section level1">
<h1>Test</h1>
<p>öäü</p>
</div>
<div id="test-1" class="slide section level1">
<h1>Test</h1>
<p>öäü</p>
</div>
<div id="test-2" class="slide section level1">
<h1>Test</h1>
<!-- 


Breaks with:
pandoc.exe: Could not fetch http://www.w3.org/Talks/Tools/Slidy2/styles\../graph
ics/nofold-dim.gif
StatusCodeException (Status {statusCode = 404, statusMessage = "Not Found"}) [("
    pandoc test.md -o test_slidy.html -t slidy --self-contained --smart 

Does not provide any slides, also breaks special Characters:
    pandoc test.md -o test_slidy.html -t slidy --smart 

Works!
    pandoc test.md -o test.html -t html --self-contained --smart 
-->
</div>

@jgm
Copy link
Owner

jgm commented Feb 22, 2017

This is now fixed, it seems.

@jgm jgm closed this as completed Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants