artempyanykh / marksman

Write Markdown with code assist and intelligence in the comfort of your favourite editor.
MIT License
1.96k stars 35 forks source link

Marksman vs MS-VSC-MdLS #141

Closed goyalyashpal closed 1 year ago

goyalyashpal commented 1 year ago

I realised asking there was a bad idea, sorry. I am just moving over the discussion here - including your comment. If you want, you can repost your comment (after which I'll delete the one I am posting)


I had some questions related to Markdown LSP landscape if you don't mind.

The Markdown support in VS Code has been reimplemented to be a full-featured Language Server

- vscode/v1_71#md-server

Originally posted by @yashpalgoyal1304 in https://github.com/artempyanykh/marksman/issues/131#issuecomment-1366849041

goyalyashpal commented 1 year ago

All good questions @yashpalgoyal1304!

What are differences in marksman and vs code's in-house md-language-server ?? I have stumbled across various places about mention of markdown LS, and each time, i am left wondering, why not VScode's one? I mean, sure, there do exist different vendors of LS (like ms-intellisense, vs clangd), and I myself prefer to use the non-MS ones generally, but don't know why I can't find distinctions for markdown LS.

  1. Marksman (as a general LSP server for Markdown) was started before folks from VSCode decided to do their own thing. In fact, I reported some problems around integrating Marksman with VSCode (clash with built-in features) in March 2021 – more than a year before the first commit in their Markdown LSP.
  2. Marksman has more features that I care about than VSCode's LSP: e.g. in addition to regular Markdown intelli-sense it supports wiki-links, which is particularly handy when you do note taking / knowledge-base management / Zettelkasten.
  3. Marksman doesn't have a dependency on node, and is distributed as a standalone binary.
  4. Marksman has integrations with many editors: neovim/LSP, Emacs (LSP-mode and Eglot), Helix, Sublime Text, and VSCode.
  5. Most importantly, it works for me... and for many others. It's cool that MS released a similar markdown LS. People can use whatever suits them best. Let a thousand flowers bloom 😉

Also, do markdown LS benefit from the existing HTML LS-es)? as these both language share quite some things i guess?

Hm, maybe if you squint hard enough... Some infrastructure things are common across LSP servers, but Markdown and HTML are different languages and require different treatment.

Hope this helps!

Originally posted by @ artempyanykh in https://github.com/artempyanykh/marksman/issues/131#issuecomment-1366921199

goyalyashpal commented 1 year ago

https://github.com/valentjn/ltex-ls