Show HN: Inlyne, a GPU powered, browser-less, Markdown previewer
25 points| trimental | 3 years ago |github.com
To help this I'm trying to create a markdown viewer that renders on the gpu without needing a browser. If this interests you please help try out `cargo install inlyne`. Using it is as simple as `inlyne README.md` and you can set themes, fonts and scaling as you'd like.
anaganisk|3 years ago
trimental|3 years ago
GPU rendering helps for scaling images, rendering text and drawing other primitives efficiently. It frees up CPU time, and can redraw many times faster in scrolls and resizes. This is why most browsers use the GPU when most web content is 2D. GPU's don't really crunch huge numbers but instead utilise parallelisation.
SahAssar|3 years ago
The point of the browser-less claim is that it converts the md to html the same way most existing engines do, but then does not use a browser engine to render it, instead using something faster and more purpose-built.
As for the GPU-thing I'm not sure, but for example terminals are sometimes written to take advantage of GPU's (kitty for example: https://sw.kovidgoyal.net/kitty/#design-philosophy ) so why not this?
msravi|3 years ago
1. Rendering of LaTeX equations
2. Vim keybindings (/ for search, ^F/^B for PgDn/PgUp, etc.)
3. Should work with vim markdown composer (by setting g:markdown_composer_browser = 'inlyne' - not sure why this just doesn't work now...)
maujim|3 years ago
markdown-composer passes a uri to the program. [1]
You can see the uri by setting `g:markdown_composer_browser = 'notify-send'`
inlyne expects a file so `inlyne http://127.0.0.1:44205/` fails
[1] https://github.com/euclio/vim-markdown-composer/blob/master/...
trimental|3 years ago
LaTex rendering might be very easy or very hard depending on the rust ecosystem for it, so I'll look into that. And I'm not too surprised it doesn't work with vim markdown composer but if it's a simple enough mechanism it'd be a great feature. Vim bindings could very easily be done though :)
boywitharupee|3 years ago
trimental|3 years ago