You can embed files, using ![[..]]
- a syntax inspired by Obsidian. The HTML can be fully customized for each embed types.
The embed wiki-link syntax must appear on a paragraph of its own, with no other text added next to it. 1 Recursive embeds are supported.
Notes
Embedding a note will simply inline it. For example, using ![[start]]
displays the following:
Follow these steps to get started with Emanote.
- Install Emanote
- Use your existing notebook, or create one from emanote-template 1 .
-
Run
emanote run --port=8080
(or justemanote
) in terminal aftercd
’ing to that notebook folder; this will launch the live server.-
Or, if you only want to generate the HTML files (for deployment), run
mkdir /tmp/output; emanote gen /tmp/output
.
-
Or, if you only want to generate the HTML files (for deployment), run
- Visit Guide to learn more about Emanote, or Examples to get inspired first. 2
Files
Embedding of File WikiLinks, as indicated in the aforementioned Obsidian help page, will eventually be supported; for now, certain file types already work.
Images
Embedding image files as, say, ![[disaster-girl.jpg]]
is equivalent to ![](path/to/disaster-girl.jpg)
(this example links to this image).
It is also posible to add images inline (example, here’s the site favicon: ) say in the middle of a paragraph.
Videos
The following is the result of using ![[death-note.mp4]]
(note that ![](death-note.mp4)
also works).
Audio
The following is the result of using ![[cat.ogg]]
(note that ![](cat.ogg)
also works).
PDFs
PDFs can be embedded using the same syntax. The following is the result of using ![[git-cheat-sheet-education.pdf]]
(note that ![](git-cheat-sheet-education.pdf)
also works):
Code files
Source code files can be embedded using the same syntax. The following is the result of using ![[haskell-code.hs]]
(note that ![](haskell-code.hs)
also works):
module HaskellCode where
main :: IO ()
main = do
print "Hello World"
A C file:
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}
The following file extensions are currently supported:
-
.hs
-
.sh
-
.py
-
.js
-
.java
-
.cpp
-
.cs
-
.rb
-
.go
-
.swift
-
.kt
-
.rs
-
.ts
-
.php
-
.c
To include a new one please see here.
Please note that the wrong syntax highlighting might be applied if you are on Firefox due to what appears to be a browser bug.