Skip to content

Use slash command to autocomplete note snippets. | 使用斜线指令输入笔记片段。

License

Notifications You must be signed in to change notification settings

typora-community-plugin/typora-plugin-note-snippets

Repository files navigation

Typora Plugin Note Snippets

English | 简体中文

This a plugin based on typora-community-plugin for Typora.

Use slash command to autocomplete note snippets.

Preview

Usage

(Optional) Add JavaScript ESM file to {NoteFolder}/.typora/snippets folder

// function.js (or other name)
export function author() {
  return 'Tom'
}

Add note snippets snippets.md(or other name) to .typora/snippets folder

key

```markdown
hello world
```

key2

```markdown
hello {{ author() }}
```

Use slash command in Typora, like /key2. It will replace with hello Tom.