You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The xwiki writer produces internal links that have the wrong format: [[Some other place>>/abc/def/xyz]]. The correct syntax would be: [[Some other place>>abc.def.xyz]] as can be seen here.
The commands used were: pandoc --from html --to xwiki --no-highlight pandoc --from dokuwiki --to xwiki --no-highlight
in the online editor.
The way the conversion works right now leads to broken links in xwiki:
Clicking the link will bring up the dialog to create a new file at the wrong location:
Some lua filter can be used to hack around this:
function Link(el)
local target = el.target
if target:match("^https?://") then
return el
end
target = target:gsub("^/", "")
target = target:gsub("/", ".")
return pandoc.Link(el.content, target)
end
But maybe it would be a good idea to fix this here:
But I understand. It's not possible to know that for the conversion. Still for the dokuwiki case it should always produce an internal link, shouldn't it?
Explain the problem.
The xwiki writer produces internal links that have the wrong format:
[[Some other place>>/abc/def/xyz]]
. The correct syntax would be:[[Some other place>>abc.def.xyz]]
as can be seen here.The commands used were:
pandoc --from html --to xwiki --no-highlight
pandoc --from dokuwiki --to xwiki --no-highlight
in the online editor.
The way the conversion works right now leads to broken links in xwiki:
Clicking the link will bring up the dialog to create a new file at the wrong location:
Some lua filter can be used to hack around this:
But maybe it would be a good idea to fix this here:
pandoc/src/Text/Pandoc/Writers/XWiki.hs
Line 236 in bfa81a5
Pandoc version?
pandoc version 3.6.4 in the online try pandoc tool and pandoc 3.1.12.1 both show the described behaviour
The text was updated successfully, but these errors were encountered: