metafates / marky Goto Github PK
View Code? Open in Web Editor NEW๐ญ Convert Markdown documents into themed HTML pages with support for code syntax highlighting, LaTeX and Mermaid diagrams.
Home Page: https://crates.io/crates/marky
๐ญ Convert Markdown documents into themed HTML pages with support for code syntax highlighting, LaTeX and Mermaid diagrams.
Home Page: https://crates.io/crates/marky
A way to render/watch/live multiple markdown documents would be nice. Ideally links to other local markdown documents should open them rendered, as they are in Github.
The given solution would be an -r
, --recursive
flag, which converts all .md
files in a directory and also rewrites local .md
links. Aggregate a list of the paths to enable --watch
to track them.
This would also necessitate codifying that <file>.md
in converted into <file>.html
(modifiable via -o
?), so that link rewriting is predictably correct (if the linked .md
existed to begin with).
The best way is probably unrelated to how watch and single mode are done, since the conversion of each file is isolated and the renaming predictable.
When the server gets a request for a path matching the conversion pattern (ends in .html
) we:
.html
-> .md
),Hi, I'd love to use your project as a dependency for a tool I'm planning.
Could you please add an example of how to use it to convert Markdown String into HTML String?
Gave marky a plug here :)
i know there must be a reason you din't
but i would love to see pre-build binary so i dont need to install rust
and also package manger as scoop and homebrew support too
When I have a markdown file input.md
with the following contents:
![](https://fastly.picsum.photos/id/237/536/354.jpg)
And I run the following command:
marky input.md --include-images 'remote'
I get the following error:
thread 'main' panicked at 'Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.', /Users/jmscdch/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.26.0/src/runtime/blocking/shutdown.rs:51:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Expected behavior would be that the image gets downloaded, converted to base64 and embedded in the HTML file.
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.