Earmark.EarmarkParserProxy (earmark v1.4.48)

View Source

This acts as a proxy to adapt to changes in Earmark.Parser's API

If no changes are needed it can delegate as_ast to Earmark.Parser

If changes are needed they will be realised in this modules as_ast function.

For that reason Earmark.Parser.as_ast/* SHALL NOT be invoked anywhere else in this code base

Summary

Functions

An adapter to Earmark.Parser.as_ast/*

Functions

as_ast(input, options)

@spec as_ast([String.t()] | String.t(), Earmark.Options.options()) ::
  {:error, binary(), [any()]} | {:ok, binary(), [map()]}

An adapter to Earmark.Parser.as_ast/*