windingwind / zotero-better-notes

Everything about note management. All in Zotero.
GNU Affero General Public License v3.0
5.11k stars 182 forks source link

How to remove html span in md export [Bug] #1018

Closed 777uliahshafar closed 2 weeks ago

777uliahshafar commented 1 month ago

Is there an existing issue for this?

Are you using the latest Zotero and the latest plugin?

Environment

Describe the bug

Hello, I use obsidian for managing my note, therefore I'd like to export zotero note in markdown. However, I encountered the issue regarding the html tag included in my note. I drag the highlighted text from pdf to better note to create notes in zotero. The result show like this :

## “1.Introduction” (Castaño-Rosa et al., 2022, p. 1)

> # <span class="highlight" data-annotation="%7B%22attachmentU....7D" ztype="zhighlight"><a href="zotero://open-pdf/library/items/X43ISR52?page=1&#x26;annotation=6MA7CIYN">“1.Introduction”</a></span>
>

Could anyone tell me how to remove the span tag from html so I can get the pure clean markdown note file. Thank you.

Debug Output

Debug Output.txt

Anything else?

No response

windingwind commented 1 month ago

Hi, this format is for storing the necessary information during the two-path syncing between Zotero note and markdown. There were some discussions on this topic, but currently, there is no better solution.

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been inactive for 7 days since being marked as stale.