or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
嘗試使用 go 改善修訂比對效能
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →by Max Wu (jackycute)
@Golang Taipei Gathering #19
HackMD
使用 Markdown 的跨平台即時協作筆記
修訂版本
也就是 Diff
右上角有個「修訂版本」
長這樣
採用 google-diff-match-patch
https://code.google.com/p/google-diff-match-patch/
官方實作語言
Java, JavaScript, Dart, C++, C#, Objective C, Lua, Python
發現什麼了嗎?
對,沒有 Golang
go-diff
https://github.com/sergi/go-diff
GNU diff format (Unified Format)
步驟
測試效能 - 短文字
Go
Node.js
測試結果
你以為這就結束了嗎?
測試效能 - 文字檔
Go
Node.js
測試結果
結論
謝謝大家
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →https://github.com/jackycute/hackmd-revision-go