Update Parser.parse docs.
This commit is contained in:
parent
441bc58cf8
commit
e2578a9e59
|
@ -2,7 +2,10 @@ defmodule JOL.Blog.Parser do
|
||||||
@zola_post_regex ~r/\+\+\+\n(?<attrs>.*)\n\+\+\+\n\n(?<body>.*)/s
|
@zola_post_regex ~r/\+\+\+\n(?<attrs>.*)\n\+\+\+\n\n(?<body>.*)/s
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Psrses a Zola-style blogpost.
|
Psrses a blog post.
|
||||||
|
|
||||||
|
Right now it only supports Zola style posts. I didn't have a ton of them
|
||||||
|
written in that format but writing the parser was fun.
|
||||||
"""
|
"""
|
||||||
@spec parse(String.t(), String.t()) ::
|
@spec parse(String.t(), String.t()) ::
|
||||||
{%{
|
{%{
|
||||||
|
|
Loading…
Reference in a new issue