SimpleBlog.Converter.Posts (simple_blog v0.2.0)

Module responsible for convert posts from markdown to html

Summary

Functions

Convert markdown file to html

Functions

Link to this function

markdown_to_html(files)

Convert markdown file to html

Examples

iex> SimpleBlog.Converter.Posts.markdown_to_html(["# post1", "# post2"])
["<h1>\npost1</h1>\n", "<h1>\npost2</h1>\n"]

iex> SimpleBlog.Converter.Posts.markdown_to_html("# post1")
"<h1>\npost1</h1>\n"

iex> SimpleBlog.Converter.Posts.markdown_to_html([])
[]