Crates.io | omdd |
lib.rs | omdd |
version | 0.1.1 |
source | src |
created_at | 2024-10-11 13:08:12.587596 |
updated_at | 2024-10-11 13:16:38.006324 |
description | A minimalistic and slick looking markdown viewer with support for hot reloading |
homepage | |
repository | https://github.com/ptrglbvc/omd |
max_upload_size | |
id | 1405301 |
size | 642,119 |
omdd is a simple, fast, and lightweight Markdown renderer and previewer written in Rust. It allows you to convert Markdown files to HTML and preview them in your browser, either statically or with live-reload support.
Was supposed to be called omd
, but some asshole had to take that name.
style.css
.Clone the Repository
git clone https://github.com/ptrglbvc/omd.git cd omdd
Build the Project
cargo build --release
Install
Optionally, you can install omdd
to your local Cargo bin directory:
cargo install --path .
This allows you to run omdd
from anywhere on your system.
Run cargo install omdd
That is it.
omddd [OPTIONS] [FILE]
-s
, --static-mode
: Run in static mode. Converts the Markdown file to HTML and opens it in your default browser without starting a server.Convert a Markdown file to HTML and open it in your browser:
omddd --static-mode README.md
If no file is specified, omdd
will read from stdin
:
cat README.md | omdd --static-mode
Start a local server to preview your Markdown file with live-reload functionality:
omdd README.md
Open http://localhost:3030 in your browser. Whenever you save changes to README.md
, the browser will automatically reload to reflect the updates.
You can customize the CSS styling by editing the style.css
file located in the src
directory or by replacing it with your own CSS file.
The application uses embedded fonts and a favicon located in the fonts
directory and favicon.ico
respectively. To use your own fonts or icon, replace these files and update the code if necessary.
omdd
supports several CommonMark extensions:
These extensions are enabled by default to enhance the formatting capabilities of your Markdown files.
This project is licensed under the MIT License.
Contributions are welcome! Please follow these steps:
Please make sure to update tests as appropriate.
For questions or suggestions, feel free to open an issue or reach out via email at petar0golubovic@gmail.com.