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/parsers/maillink.ex
defmodule Markright.Parsers.Maillink do
@moduledoc ~S"""
Makes all the mailto:who@where.domain texts to be links.
## Examples
iex> input = "mailto:am@mudasobwa.ru "
iex> Markright.Parsers.Maillink.to_ast(input)
%Markright.Continuation{ast: {:a, %{href: "mailto:am@mudasobwa.ru"}, "mailto:am@mudasobwa.ru"}, tail: " "}
iex> input = "Hello mailto:am@mudasobwa.ru !"
iex> Markright.to_ast(input)
{:article, %{},
[{:p, %{},
["Hello ", {:a, %{href: "mailto:am@mudasobwa.ru"}, "mailto:am@mudasobwa.ru"},
" !"]}]}
"""
use Markright.Helpers.Magnet
end