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

DokuWiki reader: No formatting syntax in URL does not work #9153

Closed
Chaoses-Ib opened this issue Oct 22, 2023 · 0 comments
Closed

DokuWiki reader: No formatting syntax in URL does not work #9153

Chaoses-Ib opened this issue Oct 22, 2023 · 0 comments
Labels

Comments

@Chaoses-Ib
Copy link

Chaoses-Ib commented Oct 22, 2023

When DokuWiki's no formatting syntax (%% %%) is used in HTTP/FTP URLs, Pandoc will parse it in a wrong way. For example, https:%%//%%www.google.com/ should be converted to https://www.google.com/ (or https:<span>//</span>www.google.com/ or <div style="display: inline">https://www.google.com/</div> to prevent auto-links), but Pandoc converts it to [https:%%//%%www.google.com/](https:%%//%%www.google.com/).

HTTP example

DokuWiki:

URL-encodes the filename it adds to the command line. Useful if you want to pass the filename to the Internet in some way. For example, you could have a context menu command which does an automatic Google search for the selected filename with: **https:%%//%%www.google.com/search?q={file%%|%%urlencode}**

GFM:

URL-encodes the filename it adds to the command line. Useful if you want
to pass the filename to the Internet in some way. For example, you could
have a context menu command which does an automatic Google search for
the selected filename with:
**[https:%%//%%www.google.com/search?q={file%%\|%%urlencode](https:%%//%%www.google.com/search?q=%7Bfile%%%7C%%urlencode)}**

Reproduce on Try pandoc!

FTP example

DokuWiki:

So if your username on the //bigcompany.com// FTP site were //jon// and your password were //apple//, you could make a connection with the path string **ftp:%%//%%jon:[email protected]/**. You can type this sort of path into the location field, or use it in buttons and hotkeys with the internal command set to automate your use of FTP. For example you could [[:customize:creating_your_own_buttons|set up a button or hotkey]] to automatically copy (upload) selected files to this site using the raw command **Copy TO "ftp:%%//%%jon:[email protected]"**.

GFM:

So if your username on the *bigcompany.com* FTP site were *jon* and your
password were *apple*, you could make a connection with the path string
**[ftp:%%//%%jon:apple@bigcompany.com/](ftp:%%//%%jon:[email protected]/)**.
You can type this sort of path into the location field, or use it in
buttons and hotkeys with the internal command set to automate your use
of FTP. For example you could [set up a button or
hotkey](/customize/creating_your_own_buttons) to automatically copy
(upload) selected files to this site using the raw command **Copy TO
"[ftp:%%//%%jon:apple@bigcompany.com](ftp:%%//%%jon:[email protected])"**.

Reproduce on Try pandoc!

Pandoc version

pandoc.exe 3.1.8
Features: +server +lua
Scripting engine: Lua 5.4

OS: Windows 11 22631.2428 x64

@Chaoses-Ib Chaoses-Ib added the bug label Oct 22, 2023
@jgm jgm closed this as completed in 5fa8f29 Oct 23, 2023
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

1 participant