obsidian-pandoc icon indicating copy to clipboard operation
obsidian-pandoc copied to clipboard

[Bug] "Internal Link Processing" option has no effect

Open ParkerRobb opened this issue 2 years ago • 7 comments

I've tried exporting a document using every option under "Internal Link Processing" and nothing changes between my source and the exported PDF. Every wikilink is exported as straight text regardless of which option is chosen.

ParkerRobb avatar Jan 13 '23 22:01 ParkerRobb

For the option below, I'm inputting Markdown, not HTML, if that makes any difference.

ParkerRobb avatar Jan 13 '23 22:01 ParkerRobb

I'm having the same issue.

FeralFlora avatar Mar 02 '23 13:03 FeralFlora

I have an issue that seems to be related to this here. I use the Citations plugin to connect to Zotero, hence, my citations in the md look like this: [[[smith2020]], p. 45] Expected outcome would be: (Smith 2020, p. 45) Actual outcome is: ([(Smith 2020)], p. 45) This does not change with any of the given options for Internal Link Processing. If I change the setting "Export files from..." to html, the links and brackets are gone as they should be, but then, of course, the citation doesn't work.

citingfairy avatar Jun 02 '23 20:06 citingfairy

Having the same issue. I want to use obsidian links as some sort of comment / hyperlink inside the manuscript, but the brackets [[]] doesn't get removed after the docx export.

smut-ny avatar Jun 08 '23 10:06 smut-ny

I found a workaround:

If you have Pandoc >3.0 and specify --from=markdown+wikilinks_title_after_pipe as a Pandoc option in "Extra Pandoc options" in the plugin settings, Pandoc itself will process the links and convert them to text (see the Pandoc User's Guide, p108).

(This does nothing to fix the underlying bug in this plugin, however).

ParkerRobb avatar Sep 19 '23 22:09 ParkerRobb

Thank you for your solution @ParkerRobb. Just one question: Your solution does work insofar as it formats to a hyperlink:

  • [[wiki-link]] → wiki-link (as hyperlink in docx!)
  • [[wiki-link|alias]] → alias (as hyperlink in docx!)

I need it to be in Plain text. Is there any way to solve this problem? :)

RealGreekGeek avatar Jul 24 '24 15:07 RealGreekGeek