Readmix.Parser (readmix v0.8.0)

Copy Markdown

Parses documents for Readmix blocks embedded in HTML comments.

This module handles parsing source documents containing tags in the following format:

<!-- rdmx some_namespace:some_action param1:123 param2:"hello" -->
content
<!-- rdmx /some_namespace:some_action -->

Summary

Functions

Parses a source string into a list of blocks.

Functions

parse_string(source, source_path)

Parses a source string into a list of blocks.

source_path is the file name used to report locations in parse errors. Returns {:ok, blocks} or {:error, %ParseError{}}.