-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add markdown support #2
Comments
Hey, came across your project here from your There is this library https://github.com/Canop/termimad. It uses As an aside, |
Example to print formatted text: use termimad::*;
let skin = MadSkin::default();
let my_markdown = "#title\n* item 1\n* item 2";
let text = FmtText::from(&skin, &my_markdown, Some(80));
println!("{}", &text); |
Yes, I checked that out when I was looking around crates.io earlier. Termimad does a lot of extra rendering that probably won't play nice with my vt102 setup. Particularly the fact that I use scrolling areas and through that split the screen into an input area and an output area. I doubt termimad would respect this configuration. Thanks for the tip though. |
No problem. https://docs.rs/mdcat seems to be another option, though you may face the same limitations outputting to your terminal. Good luck! |
Helpfiles are currently writte in MD. This makes them look good in github but not so much when viewed in the client.
Using this lib: https://github.com/netvl/md.rs we could perhaps improve the look of the markdown files when shown in the client.
Coloring is out, but the other data should turn out better then what we have at least.
The text was updated successfully, but these errors were encountered: