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
markright lib markright errors unexpected_feature.ex
Raw

lib/markright/errors/unexpected_feature.ex

defmodule Markright.Errors.UnexpectedFeature 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.UnexpectedFeature{value: value, expected: expected, message: message}
end
def exception(value: value) do
exception(value: value, expected: :not_yet_implemented)
end
end