medup
1.0.0



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
다음 명령을 사용하여 포트 8181에서 HTTP 서비스를 시작하십시오.
cargo run -- serve --config-path themes/notion/config.json --dir docs --static-dir themes
또는
docker run -d --rm -p 8181:8181 skoowoo/medup:0.1
브라우저를 사용하여 http://localhost:8181 엽니 다.
// 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 ) ;