You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ This is a plugin for [Obsidian](https://obsidian.md) which enables you to use Re
36
36
-[x] Works in canvas blocks.
37
37
-[x] Works on mobile.
38
38
-[x] Components are loaded from JS files, so you can use your favorite editor.
39
-
-[x] Emera supports TypeScript, ES modules (local only), and direct import of CSS files.
39
+
-[x] Emera supports TypeScript, ES modules (local and remote), and direct import of CSS files.
40
40
41
41
## Roadmap / What's missing
42
42
@@ -127,11 +127,11 @@ Emera executes code isolated from each other. This means that by default your co
127
127
Besides variables exported from code blocks, Emera put a couple of extras into page and root scope.
128
128
129
129
Root scope:
130
-
*`app` – plugin's app instance, see [docs](https://docs.obsidian.md/Reference/TypeScript+API/App)).
130
+
*`app` – plugin's app instance, see [docs](https://docs.obsidian.md/Reference/TypeScript+API/App).
131
131
*`modules` – external modules provided by Emera, see [available modules](#available-modules).
132
132
133
133
Page scope:
134
-
*`file` – `TFile` object for current page if rended in page, otherwise null (e.g. for blocks in canvas). See [docs](https://docs.obsidian.md/Reference/TypeScript+API/TFile)).
134
+
*`file` – `TFile | null` object for current page if rended in page, otherwise null (e.g. for blocks in canvas). See [docs](https://docs.obsidian.md/Reference/TypeScript+API/TFile).
135
135
*`frontmatter` – frontmatter object for current page.
136
136
137
137
### Supported features
@@ -155,7 +155,7 @@ I tried to make working with Emera as easy as possible, but there are still a fe
155
155
156
156
* You can't use external modules
157
157
158
-
Most notably, you can't use external modules (ones installed with NPM or imported directly by URL). If you're interested as to why, check out [How it works](#how-it-works) section. However, you can import local files, so if you download required library and place it in components folder – you can import it (as long as library itself doesn't import any other external modules). Emera provides a couple of modules out of the box, see [Available modules](#available-modules).
158
+
Most notably, you can't use external modules installed with NPM. If you're interested as to why, check out [How it works](#how-it-works) section. However, you can import from ESM CDN like [esm.sh](https://esm.sh/). Or alternatively, you can download required library, place it in components folder and import as usual (as long as library itself doesn't import any other external modules). Emera provides a couple of modules out of the box, see [Available modules](#available-modules).
0 commit comments