Code Monkey home page Code Monkey logo

medup's Introduction

Medup is a markdown parser and reader!

Features

  • Support all standard syntax of markdown
  • Supports all major extension syntaxes
  • Provide crate to convert markdown to html or Custom development based on AST directly
  • Provide web service to host and parse markdown files, and create private document system or blog
  • Support css theme selection or custom
  • Support slice mode that you can convert a markdown file into multi slices, .e.g card, picture or slide ...
  • Custom new grammar so that the content can be layout horizontally
  • Support git as storage backend
  • There may be an editor, supporting VIM mode

Demo

Normal Document

XHS (小红书) Picture based on "slice mode"

Usage

A markdown parser and reader

Usage: medup <COMMAND>

Commands:
  serve  Provide an http service for markdown parsing
  help   Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help information
  -V, --version  Print version information

Web

Use the following command to start an http service on port 8181.

cargo run -- serve --config-path themes/notion/config.json --dir docs --static-dir themes

or

docker run -d --rm -p 8181:8181 skoowoo/medup:0.1

Open http://localhost:8181 with your browser.

Crate

// Cargo.toml
// medup = {git = "https://github.com/hardhackerlabs/medup"}

use medup::{config, markdown};

let html_content = markdown::Markdown::new()
    .config(config::Config::default())
    .path("docs/markdown-guide.md")
    .map_mut(markdown::to_html_body);

println!(html_content);

medup's People

Contributors

skoowoo avatar anson0370 avatar daskyrk avatar

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.