Arcdown v0.1.2 Arcdown.Parsers.ArticleParser View Source
Module responsible for parsing the entire content and filename of a single article file and generating an %Article{} struct populated with all relevant attributes and metadata
Link to this section Summary
Functions
Read a full Arcdown article from a given filee path, split the header and content, construct an Article with content, and parse the header data
Take in a full Arcdown article as a single string, split the header and content, construct an Article with content, and parse the header data
Link to this section Functions
Link to this function
match_parts(text) View Source
Link to this function
parse_file(path)
View Source
parse_file(path)
View Source
parse_file(binary()) :: {atom(), Arcdown.Article.t() | binary()}
parse_file(binary()) :: {atom(), Arcdown.Article.t() | binary()}
Read a full Arcdown article from a given filee path, split the header and content, construct an Article with content, and parse the header data.
Link to this function
parse_text(text)
View Source
parse_text(text)
View Source
parse_text(binary()) :: {atom(), Arcdown.Article.t() | binary()}
parse_text(binary()) :: {atom(), Arcdown.Article.t() | binary()}
Take in a full Arcdown article as a single string, split the header and content, construct an Article with content, and parse the header data.