A command line tool for syncing markdown notes to Evernote 🐘
Some features:
- Supports publishing markdown notes to evernote
- Supports unpublishing markdown notes from evernote
- Supports adding notebook and tags
- Supports code highlight, tables and inserting images
- Supports todo-list and LaTeX expressions
- Supports flow charts, sequence diagrams and gant diagrams
npm install -g evermark
Initialize Evermark folder, save settings to file evermark.json
。
evermark init <destination>
- First, follow the prompt to select whether you are using Evernote International or 印象笔记.
- Then login with your account from automatically opened page to generate
developerToken
and copy it. - Finally, according to the prompt paste the copied
developerToken
.
The urls to generate developerToken
:
evermark config [name] [value]
Create a empty markdown note in the notes
directory of the Evermark folder.
evermark new <title>
Publish markdown notes to Evernote or update the published notes.
evermark publish <file_or_directory>
Delete the Evernote note which corresponding the markdown note, but the markdown note file will not be deleted.
evermark unpublish <file_or_directory>
evermark help [command]
# H1
## H2
### H3
#### H4
##### H5
###### H6
*This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__
~~This text will be crossed~~
_You **can** combine ~~them~~_
19^th^
H~2~O
:smile: :heart: :sunny: :watermelon: :cn:
http://github.com - automatic!
[GitHub](http://github.com)
As Kanye West said:
> We're living the future so
> the present is our past.
- Item 1
- Item 2
- Item 2a
- Item 2b
1. Item 1
1. Item 2
1. Item 3
- Item 3a
- Item 3b
- [x] Write blog post with :heart:
- [x] Create sample **gist**
- [ ] Take screenshots for blog post
First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column
![Image of Test](img/test.png "Image of Test")
![GitHub Logo](https://assets-cdn.github.com/images/modules/logos_page/Octocat.png "GitHub Logo")
This is an inline code: `var example = true`
```js
console.log('Hello world!')
```
Evermark supports flow charts, sequence diagrams and gant diagrams by using mermaid.
Please see the mermaid docs for more details.
```
graph LR
A[Square Rect] -- Link text --> B((Circle))
A --> C(Round Rect)
B --> D{Rhombus}
C --> D
```
```
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts<br/>prevail...
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
```
gantt
title A Gantt Diagram
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12, 12d
anther task : 24d
```
Evermark supports LaTeX expression for math.
When $a \ne 0$, there are two solutions to $ax^2 + bx + c = 0$ and they are
$x = {-b \pm \sqrt {b^2-4ac} \over 2a}$.
$$
\displaystyle \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }
$$
$$
\displaystyle \left( \sum_{k=1}^n a_k b_k \right)^2 \leq
\left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
$$
<div style="color: red;">This is a <strong>html</strong> code.</div>
Evermark add @(Notebook)[tag1|tag2|tag3] syntax to select notebook and set tags for the note.
Evermark would use the first heading encountered as the note title.
欢迎提交 issue 来优化完善这个项目。
如果此项目对您有很大的帮助, 请酌情考虑打赏作者。