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

Markdown to DokuWiki - External Images #1739

Closed
randomessence opened this issue Nov 4, 2014 · 3 comments · Fixed by #1746
Closed

Markdown to DokuWiki - External Images #1739

randomessence opened this issue Nov 4, 2014 · 3 comments · Fixed by #1746

Comments

@randomessence
Copy link

Image links using an external URL for the image (github for example) have a : at the start of the URL breaking the code. For an external URL it should not have the first : in this {{:http...

Proof of the issue:

We take this image:

https://raw.githubusercontent.com/adam-p/markdown-here/master/src/common/images/icon48.png

For example, embedded using Markdown:

A test image

Here is the code:

![A test image](https://raw.githubusercontent.com/adam-p/markdown-here/master/src/common/images/icon48.png)

Then go here:

http://johnmacfarlane.net/pandoc/try/?text=&from=markdown&to=dokuwiki

Convert the above image code to Dokuwiki Syntax.

Then go use it here:

https://www.softaculous.com/demos/DokuWiki

And use the code in a demo post. the demo uses Hrun

You will get this code, it does not work:

{{:https://raw.githubusercontent.com/adam-p/markdown-here/master/src/common/images/icon48.png| A test image}}

Working code:

{{https://raw.githubusercontent.com/adam-p/markdown-here/master/src/common/images/icon48.png| A test image}}
@jgm
Copy link
Owner

jgm commented Nov 4, 2014

Pinging @claremacrae, who wrote the DokuWiki writer.

@claremacrae
Copy link
Contributor

From looking at my commit that claimed to implement images - bb83563890cc9e4f65679693 - I definitely didn't handle external URLs. I think I maybe just didn't know it was possible for DoluWiki to pull in external images, so that's good to know about.

thumphries added a commit to thumphries/pandoc that referenced this issue Nov 9, 2014
Handles jgm#1739. Preface relative links with ":", absolute URIs without.
@thumphries
Copy link
Contributor

PR submitted. Let me know if you see any mistakes.

thumphries added a commit to thumphries/pandoc that referenced this issue Nov 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants