razorheadfx / grup Goto Github PK
View Code? Open in Web Editor NEWoffline markdown previewer
License: Apache License 2.0
offline markdown previewer
License: Apache License 2.0
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.x
release bump to major version
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
Right now there is just a markdown parsing step and the content being dumped to html.
Thus umlauts (and other unicode chars) break in the usual html way.
Potential Fixes:
Might be sufficient to set the charset to utf-8. (c.f. https://en.wikipedia.org/wiki/Unicode_and_HTML#Character_encoding_determination).
Content-Type: text/html; charset=UTF-8
Assumes:
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.