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 parsers li.ex
Raw

lib/markright/parsers/li.ex

defmodule Markright.Parsers.Li do
@moduledoc ~S"""
Parses the input for the line item.
## Examples
iex> input = " item 1
...> ever
...> - item 2
...> "
iex> Markright.Parsers.Li.to_ast(input)
%Markright.Continuation{ast: {:li, %{}, "item 1\n ever"}, tail: "\n - item 2\n "}
iex> input = " item 1
...> *ever*
...> - item 2
...> "
iex> Markright.Parsers.Li.to_ast(input)
%Markright.Continuation{ast: {:li, %{}, ["item 1\n ", {:strong, %{}, "ever"}]}, tail: "\n - item 2\n "}
"""
use Markright.Helpers.Lead
end