This is a LSP (Language Server Protocal) prototype built based on markdown-oxide to:
- Get myself a basic understanding of LSP;
- Only provide backlinks for text files (with
.testextension).
It differs from markdown-oxide mainly in:
- Only support
[[...]]and((...))styled links (see Grammar for details), any codes not related to this are removed; - Some codes modified to be clearer to me:
This LSP only supports files with .test extension, and only recognize links with the following formats:
| Link Type | Data in Source Code | Full Form | Short Form |
|---|---|---|---|
| To File | Knot::ToMyFile |
[[f|file_name]] |
[[file_name]] |
| To Text | Knot::ToAnchor |
[[d|anchor_name]] |
((anchor_name)) |
| Text to Link | struct Anchor |
[[j|anchor_name]] |
((:anchor_name)) |
Most codes in this repo come from markdown-oxide, see markdown-oxide and its license!