Closed DesmetQuentin closed 1 month ago
You can use the ExportMDFileContent template to customize the note2markdown parsing. I believe there are some similar ones available in the discussions.
Ok, it's very great now! Thank you very much! I am now using the following:
# This template is specifically for importing/sharing, using better
# notes 'import from clipboard': copy the content and
# goto Zotero menu bar, click Edit->New Template from Clipboard.
# Do not copy-paste this to better notes template editor directly.
name: "[ExportMDFileContent]"
content: |-
${{
return mdContent.replaceAll("\\[\\[", "[[").replaceAll("* ", "- ").replaceAll("--", "–").replaceAll("->", "→").replaceAll("“", '"').replaceAll("”", '"');
}}$
Is there an existing issue for this?
Environment
Describe the feature request
The problem
I am using the plugin with synchronization with my Obsidian vault (in Markdown) and there are several things that do not work well when synchronizing. For instance, when using Wikilinks (with the syntax
[[link]]
) in Obsidian, synchronization in Zotero transforms the first double brackets into\[\[
, which breaks the link on the Obsidian side. Another example is just about esthetics: the bullet points are rendered with*
(three spaces) in md, when I'd rather put-
(a dash and one space).The feature
A natural solution would be to have somewhere in the settings of Zotero Better Notes, a section with the possibility to change the defaults conversion behaviors, for the several exporting type you propose (md in my case). For the two examples I provide, I think there could be in the md section a bullet point setting where one could enter in a form the string to use (in my case:
-
, while the default would be*
), and for specific character patterns like with the Wikilinks, the user could add as many as needed in a list of patterns to keep unchanged (in my case, I'd put:[[
,]]
).I hope this makes sense. And if there is already a way to do that, I'd be happy to hear about it.
Describe the solution you'd like
No response
Anything else?
No response