Evermark 是我用 JavaScript 开发的命令行工具,支持以 Markdown 格式写 Evernote 笔记,简单实用。
目前支持的特性如下:
- 支持基于命令行添加、发布 Markdown 格式的笔记
- 支持自动添加在笔记内容中指定的笔记本和标签
- 支持发布或撤销某个目录下的所有 Markdown 笔记
- 支持高亮代码块、图片引用、表格等
- 支持任务列表
- 支持数学公式
- 支持流程图、序列图、甘特图
安装方法
命令说明
初始化 Evermark 文件夹
初始化 Evermark 文件夹,保存配置信息到 evermark.json
文件。
1
| evermark init <destination>
|
- 首先根据提示选择你使用的是 Evernote International 还是印象笔记;
- 然后在自动打开的网页里输入账号密码后生成
developerToken
并复制;
- 最后根据提示粘贴刚刚复制的
developerToken
。
developerToken
的生成链接:
查看或修改配置
1
| evermark config [name] [value]
|
添加笔记文件
创建一个 markdown 文件,存放在 Evermark 文件夹的 notes
目录下。
发布笔记
将 markdown 文件发布到 Evernote,对于已发布过的文件会采取更新操作。
1
| evermark publish <file_or_directory>
|
撤销笔记
在 Evernote 中删除 markdown 文件对应的笔记,markdown 文件不会删除。
1
| evermark unpublish <file_or_directory>
|
查看帮助
Evermark 支持的 Markdown 语法
1 2 3 4 5 6
| # H1 ## H2 ### H3 #### H4 ##### H5 ###### H6
|
Emphasis
1 2 3 4 5 6 7 8 9
| *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~~_
|
Sups & Subs
Emoji
1
| :smile: :heart: :sunny: :watermelon: :cn:
|
Links
1 2
| http://github.com - automatic! [GitHub](http://github.com)
|
Blockquotes
1 2 3 4
| As Kanye West said: > We're living the future so > the present is our past.
|
Lists
Unordered
1 2 3 4
| - Item 1 - Item 2 - Item 2a - Item 2b
|
Ordered
1 2 3 4 5
| 1. Item 1 1. Item 2 1. Item 3 - Item 3a - Item 3b
|
Task Lists
1 2 3
| - [x] Write blog post with :heart: - [x] Create sample **gist** - [ ] Take screenshots for blog post
|
Tables
1 2 3 4
| First Header | Second Header ------------ | ------------- Content from cell 1 | Content from cell 2 Content in the first column | Content in the second column
|
Images
1 2
| ![Image of Test](img/test.png "Image of Test") ![GitHub Logo](https://assets-cdn.github.com/images/modules/logos_page/Octocat.png "GitHub Logo")
|
Inline Code
1
| This is an inline code: `var example = true`
|
Block Code
1 2 3
| ```js console.log('Hello world!') ```
|
Diagrams
这部分功能使用 Mermaid 实现,具体可以参考它的文档。
1 2 3 4 5 6 7
| ``` graph LR A-->B B-->C C-->A D-->C ```
|
1 2 3 4 5
| ``` sequenceDiagram Alice->>John: Hello John, how are you? John-->>Alice: Great! ```
|
1 2 3 4 5 6 7 8 9 10 11
| ``` 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 ```
|
Math Equations
Inline Equations
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}$.
Block Equations
$$
\displaystyle \left( \sum_{k=1}^n a_k bk \right)^2 \leq
\left( \sum{k=1}^n ak^2 \right) \left( \sum{k=1}^n b_k^2 \right)
$$
Raw HTML
1
| <div style="color: red;">This is a <strong>html</strong> code.</div>
|
- Evermark 自动使用文档内出现的第一个标题作为笔记标题。
- Evermark 支持
@(笔记本)[标签A|标签B]
语法, 以选择笔记本和添加标签。