update
This commit is contained in:
33
obsidian plugin hypothesis.md
Normal file
33
obsidian plugin hypothesis.md
Normal file
@@ -0,0 +1,33 @@
|
||||
up:: [[obsidian plugins]]
|
||||
#obsidian #PKM
|
||||
|
||||
|
||||
Plugin pour importer les annotations de [[hypothes.is]] dans obsidian
|
||||
|
||||
# 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 %}
|
||||
```
|
Reference in New Issue
Block a user