Packages
**The extended, configurable markdown-like syntax parser, that produces an AST.** Supports the full set of `markdown`, plus extensions (custom markup with a bit of elixir code to handle parsing.) The AST produced is understandable by [`XmlBuilder`](https://github.com/joshnuss/xml_builder).
Current section
Files
Jump to
Current section
Files
lib/markright/errors/unexpected_syntax.ex
defmodule Markright.Errors.UnexpectedSyntax do
defexception [:value, :expected, :message]
def exception(value: value, expected: expected) do
message = "Could not understand [#{inspect(value)}]. It is expected to be a #{expected}."
%Markright.Errors.UnexpectedSyntax{value: value, expected: expected, message: message}
end
def exception(value: value) do
exception(value: value, expected: :invalid_syntax)
end
end