argenos / zotero-mdnotes

A Zotero plugin to export item metadata and notes as markdown files
https://argenos.github.io/zotero-mdnotes/
GNU General Public License v3.0
1.34k stars 81 forks source link

exported note having escaped characters #115

Open Caffa opened 3 years ago

Caffa commented 3 years ago

Describe the bug I have had issues with the exported note having escaped characters like [[Field]] and - [ ] although I have disabled HTML conversion in obsidian and am using mdnotes 0.2.0-alpha4 .

To Reproduce Steps to reproduce the behavior:

  1. Extract annotations from highlighted pdf
  2. Option click parent item and select mdnotes option to have full export note
  3. In obsidian you will see something like this: ` Extracted Annotations

[[Challenges]] (Cyan) - important considerations of real-world communication networks, such as limits on bandwidth.

important considerations of real-world communication
networks, such as limits on bandwidth.

[[Approach]] (Yellow) - we propose an approach to learning sparse discrete communication through backpropagation in the context of MARL, in which agents are incentivized to communicate as little as possible while still achieving high reward.

we propose an approach to learning sparse discrete communication
through backpropagation in the context of MARL, in which
agents are incentivized to communicate as little as possible
while still achieving high reward.

- [ ] #litreview (Green) - Building on top of our prior work on differentiable discrete communication learning,

Building on top of our
prior work on differentiable discrete communication learning,

[[Approach]] (Yellow) - we develop a regularization-inspired message-length penalty term, that encourages agents to send shorter messages and avoid unnecessary communications.`

Expected behavior I expected an export without the escape characters Screenshots Here are screenshots of the md file in obsidian image image

and the same annotations in Zotero image

Desktop (please complete the following information):

Additional context Also mentioned on https://forum.obsidian.md/t/zotero-zotfile-mdnotes-obsidian-dataview-workflow/15536/39?u=caffae

Here are my settings in Zotero image image

argenos commented 3 years ago

Oh I think I know what's wrong! The order in which you apply the tags matter, the %(color) placeholder gets converted to a <span> which is left intact by mdnotes (we don't want to translate that bit of HTML to markdown, so you can keep the coloured backgrounds if you use them). I believe if you move the %(color) placeholder outside the bold <b> tag, there should be no escaping of wiki links any more.

Caffa commented 3 years ago

I have changed as follows: image but it still results in escaped wiki-links image

I am not sure if this was what you meant? by moving the color out