prettify-markdown

Crates.ioprettify-markdown
lib.rsprettify-markdown
version0.2.0
sourcesrc
created_at2022-06-29 05:48:34.38123
updated_at2022-07-18 00:39:43.381398
descriptionFormat Markdown at the speed of Rust.
homepage
repository
max_upload_size
id615257
size41,316
Nick Mazuk (Nick-Mazuk)

documentation

README

Prettify Markdown

Format Markdown at the speed of Rust.

Note: A CLI is in the works if you just want to format your own code. The Markdown formatting is shared as it's own lib in case you wish to use it in your own project.

Prettify extensible, language-agnostic code formatter based on Prettier written in Rust. The core of Prettify is in it's own crate, prettify.

This library is designed to be used with the core prettify crate. This library parses the markdown to create the Prettify doc, and Prettify core will then format that doc.

use prettify::print;
use prettify_markdown::format_markdown;

fn prettify_markdown(file_contents: &str) -> String {
    print(format_markdown(file_contents))
}

Note: this crate is in very early alpha. Most features of Markdown are not supported at this time. This library will eventually support all features of GitHub flavored Markdown.

Commit count: 0

cargo fmt