Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zuisong/notion-kroki
Render notion code block as graph by kroki(plantuml, mermaid, ...etc)
https://github.com/zuisong/notion-kroki
diagram-generator kroki notion notion-enhancer plantuml-diagrams tampermonkey tampermonkey-userscript userscript violentmonkey
Last synced: 23 days ago
JSON representation
Render notion code block as graph by kroki(plantuml, mermaid, ...etc)
- Host: GitHub
- URL: https://github.com/zuisong/notion-kroki
- Owner: zuisong
- Created: 2022-07-06T16:40:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T03:15:02.000Z (8 months ago)
- Last Synced: 2024-10-01T02:01:19.185Z (about 1 month ago)
- Topics: diagram-generator, kroki, notion, notion-enhancer, plantuml-diagrams, tampermonkey, tampermonkey-userscript, userscript, violentmonkey
- Language: TypeScript
- Homepage: https://zuisong.notion.site/noiton-kroki-demo-7624581b1d784af49decfdc19543ed03
- Size: 644 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# notion-kroki
![Codecov](https://img.shields.io/codecov/c/github/zuisong/notion-kroki)
![GitHub branch checks state](https://img.shields.io/github/checks-status/zuisong/notion-kroki/main)
![GitHub top language](https://img.shields.io/github/languages/top/zuisong/notion-kroki)
![GitHub last commit](https://img.shields.io/github/last-commit/zuisong/notion-kroki)## 前置条件(Pre Condition)
### Make sure you have installed **Violentmonkey** or **Tampermonkey**
### 在使用之前请先确保你已经在浏览器安装了脚本管理插件 **Violentmonkey** 或者 **Tampermonkey**
| Browser | Violentmonkey | Tampermonkey |
| ------- | -------------------------------------- | ------------------------------------ |
| Chrome | [Violentmonkey][chrome_violentmonkey] | [Tampermonkey][chrome_tampermonkey] |
| Firefox | [Violentmonkey][firefox_violentmonkey] | [Tampermonkey][firefox_tampermonkey] |
| Edge | [Violentmonkey][edge_violentmonkey] | [Tampermonkey][edge_tampermonkey] |## 安装(How to install)
[💥 Click me install user script 💥][install_link]
[💥 点我安装脚本 💥][install_link]
## Usage
### 1. Add a **Plain Text** code block with content
```text
//kroki plantuml
@startuml
Alice -> "Bob()" : Hello
"Bob()" -> "This is very\nlong" as Long
' You can also declare:
' "Bob()" -> Long as "This is very\nlong"
Long --> "Bob()" : ok
@enduml
```PS: **first line is very important**
### 2. Then, you will got like this
![demo](./imgs/demo.png)
[chrome_violentmonkey]: https://chrome.google.com/webstore/detail/violent-monkey/jinjaccalgkegednnccohejagnlnfdag
[chrome_tampermonkey]: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
[firefox_tampermonkey]: https://addons.mozilla.org/firefox/addon/tampermonkey/
[firefox_violentmonkey]: https://addons.mozilla.org/firefox/addon/violentmonkey/
[edge_tampermonkey]: https://microsoftedge.microsoft.com/addons/detail/tampermonkey/iikmkjmpaadaobahmlepeloendndfphd
[edge_violentmonkey]: https://microsoftedge.microsoft.com/addons/detail/violentmonkey/eeagobfjdenkkddmbclomhiblgggliao
[install_link]: https://github.com/zuisong/notion-kroki/raw/main/notion-kroki.user.js