Crates.io | inlyne |
lib.rs | inlyne |
version | 0.4.3 |
source | src |
created_at | 2022-08-11 14:58:08.135117 |
updated_at | 2024-08-29 05:13:10.206011 |
description | Introducing Inlyne, a GPU powered yet browserless tool to help you quickly view markdown files in the blink of an eye. |
homepage | https://github.com/Inlyne-Project/inlyne |
repository | https://github.com/Inlyne-Project/inlyne |
max_upload_size | |
id | 643378 |
size | 1,070,957 |
inlyne README.md --theme dark/light
Markdown files are a wonderful tool to get formatted, visually appealing, information to people in a minimal way. Except 9 times out of 10 you need an entire web browser to quickly open a file...
Introducing Inlyne, a GPU powered yet browserless tool to help you quickly view markdown files in the blink of an eye 👀.
inlyne
is already present in a handful of different package repos.
Installation should be mostly painless as most things come pre-bundled.
There are a small handful of dependencies needed to build inlyne
from source.
Namely
cargo
with a somewhat recent Rust toolchain
(the relevant docs)fontconfig
, xkbcommon
, and wayland
(when the wayland
feature flag is set)For instance on Ubuntu gcc
covers 2. and libfontconfig-dev
,
libxkbcommon-dev
and libwayland-dev
would cover 3.
Over time the features of this application will continue to grow. However there are a few core features that will remain at the heart of the project.
Super cool tables | For organising data |
---|---|
Favourite band | Nickleback |
// Code thats drawing this text
let bounds = (screen_size.0 - pos.0 - DEFAULT_MARGIN, screen_size.1);
self.glyph_brush.queue(&text_box.glyph_section(*pos, bounds));
You weren't supposed to see this!
Text/Image..
alignment..
:)
“Optimism is an occupational hazard of programming: feedback is the treatment. “ Kent Beck
Are these text effects to too much? Theres no such thing
Use inlyne --help
to see all the command line options. Some of which can be set permentantly by placing an inlyne.toml
file into a directory called inlyne
within the default dirs configuration folder for your respective OS:
/home/alice/.config/inlyne/inlyne.toml
C:\Users\Alice\AppData\Roaming\inlyne\inlyne.toml
/Users/Alice/Library/Application Support/inlyne/inlyne.toml
Checkout inlyne.default.toml
for an example configuration.
Is this a html markdown or html renderer?
All markdown files are converted to html thanks to comrak and rendered from there. So technically its a markdown converter and html renderer.
However for obvious complexity reasons, inlynes only going to support enough
html to get by rendering 95% of markdown files such as <br>
, <h1>
, <img>
.. etc.
Unforuntately things like <form>
and every single css style isn't going to be in scope
Why not use a browser or Visual Studio Code?
You definitely can! And it'll probably do a lot more accurate job at rendering it.
However wouldn't it be nice to have an application that can quickly open that one file in your vim setup? I'd like to think of this as the macOS preview or Adobe Acrobat of markdown.
Send your PRs! Send your issues! Everything will help :)
Any code that you can in this repository, you can copy under the MIT license.