Update Parser.parse docs.

This commit is contained in:
Jessica Canady 2024-05-23 16:53:16 -04:00
parent 441bc58cf8
commit e2578a9e59
Signed by: phoenix
SSH key fingerprint: SHA256:aaLOzOrLi+0n4eDZNQKH97PehwRt6KSE5fYJc+ZRKCQ

View file

@ -2,7 +2,10 @@ defmodule JOL.Blog.Parser do
@zola_post_regex ~r/\+\+\+\n(?<attrs>.*)\n\+\+\+\n\n(?<body>.*)/s
@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()) ::
{%{