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

Export modifies URL syntax #22

Closed
eike2013 opened this issue Jan 15, 2017 · 1 comment
Closed

Export modifies URL syntax #22

eike2013 opened this issue Jan 15, 2017 · 1 comment

Comments

@eike2013
Copy link

eike2013 commented Jan 15, 2017

When exporting a pad which contains urls using http://linktopad.com/p/testpad/export/markdown the resulting file contains a wrong syntax.

In ep itself the shown syntax is correct, e.g. like described in this cheatsheet https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#links).

[I'm an inline-style link](https://www.google.com)

But the exported file wraps an \url tag around the link and corrupting it for further processing, e.g. pelican static site generation.

The code responsible for this is in the exportMarkdown.js
if (urls) { urls.forEach(function (urlData) { var startIndex = urlData[0]; var url = urlData[1]; var urlLength = url.length; processNextChars(startIndex - idx); assem.append('\\url{'); processNextChars(urlLength); assem.append('}'); }); }

So why is this implemented and how can I switch it off to get a proper export following the rules from the cheatsheet?

@JohnMcLear
Copy link
Member

Fixed.

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

No branches or pull requests

2 participants