Padmark.Cli (padmark v1.4.49)

View Source

The Padmark CLI

Entry point of the escript, this is the only point that does IO with output and it uses the Padmark.File module which is the only point that does IO with input.

Summary

Functions

This is the entry point of the escript

A convenience wrapper around Padmark.Cli.Implementation.run/1 it will return str in case {:stdio, str} is returned or raise an error otherwise

Functions

main(argv)

This is the entry point of the escript

run!(argv)

A convenience wrapper around Padmark.Cli.Implementation.run/1 it will return str in case {:stdio, str} is returned or raise an error otherwise

iex(0)> run!(["test/fixtures/short1.md"])
"<h1>\nHeadline1</h1>\n<hr class=\"thin\">\n<h2>\nHeadline2</h2>\n"