cours/obsidian plugin hypothesis.md
Oscar Plaisant de3a0dcf0f update
2024-05-21 11:40:42 +02:00

35 lines
888 B
Markdown

up:: [[obsidian plugins]]
#obsidian #PKM
Plugin pour importer les annotations de [[hypothes.is]] dans obsidian
# Importation des annotations
L'importation des annotations
## Template
```
{% if is_new_article %}{% if author %}author:: [[{{author}}]]
url:: [{{author}}]({{url}})
{% else %}
url:: {{url}}
{% endif %}{% endif %}
{% if is_new_article %}
## Annotations
{% for highlight in highlights %}
> [!zotero] [{{highlight.updated}}]({{highlight.incontext}}){% for line in highlight.text.split("\n") %}
> {{line}}{% endfor %}{% if highlight.annotation %}
> > [!note] Annotations{% for line in highlight.annotation.split("\n") %}
> > {{line}}{% endfor %}
{% endif %}{% endfor %}{% endif %}
{% if is_new_article %}
## Notes de pages
{% for highlight in page_notes %}
> [!note] [{{highlight.updated}}]({{highlight.incontext}})
> {{highlight.annotation}}
{% endfor %}
{% endif %}
```