GithubHelp home page GithubHelp logo

razorheadfx / grup Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 91 KB

offline markdown previewer

License: Apache License 2.0

Rust 42.20% CSS 57.80%
github-markdown markdown rust grip local-preview offline privacy utility

grup's People

Contributors

nickez avatar razorheadfx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nickez

grup's Issues

Bump notify, hyper and tokio after stabilization

Currently these deps are tracking pre-release branches because of an issue described in: e7376d9

hyper           = "0.13.0-alpha.4"
tokio-fs        = "0.2.0-alpha.6"
tokio-io        = "0.2.0-alpha.6"
tokio-sync      = "0.2.0-alpha.6"
tokio           = { version = "=0.2.0-alpha.6" }

Once the std::future friendly versions of the deps have dropped, bump them to minor versions.

Also once notify has a stable 5.xrelease bump to major version

Add direct to html render mode

Add a render mode that directly outputs the markdown as html with stylesheet included in the header.

For example

grup README.md --offline readme.html

That way one could use the awesome wkhtmltopdf cli tool to directly output a rendered pdf file from a .md file, like so:

 grup README.md --offline readme.html && wkhtmltopdf readme.html readme.pdf && rm readme.html

Fix parent directory/md file relationship

Currently running something like the following will cause an error on windows

# for example mdfile D:\test\md\md.md and pwd=D:\test\md\
$ grup md.md

yields:

Error: Os { code: 123, kind: Other, message: "The filename, directory name, or volume label syntax is incorrect." }

Running with

 # for example mdfile D:\test\md\md.md and pwd=D:\test
$ grup test\md.md

yields:

Error: Custom { kind: Other, error: "No such file: \"md\\\\md.md\"" }

This can currently be fixed by prepending .\ (i.e. .\md.md when in the same directory) so windows finds the file correctly.

This also does not bode well for the static file functionality.

"non-standard" license-file

Commit 11d53ba removed license from Cargo.toml in favor of license-file, but this causes crates.io to show it as a "non-standard" license. I would recommend going the other way, using only the license field, but do make sure the file is still included in the package (cargo package --list).

See also: rust-lang/cargo#8537

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.