Packages

Earmark is a pure-Elixir Markdown converter. It is intended to be used as a library (just call Earmark.as_html), but can also be used as a command-line tool (run mix escript.build first). Output generation is pluggable.

Retired package: Deprecated - Earmark is no longer maintained. Migrate to a replacement, for example MDEx (https://hex.pm/packages/mdex).
Security advisory: This version has known vulnerabilities. View advisories

Current section

Files

Jump to
earmark src earmark_string_lexer.xrl
Raw

src/earmark_string_lexer.xrl

Definitions.
OTHER = [^`\\]+
ESCAPE = \\
BACKTIX = `+
Rules.
{OTHER} : {token, {other, TokenLine, TokenChars}}.
{ESCAPE} : {token, {escape, TokenLine, TokenChars}}.
{BACKTIX} : {token, {backtix, TokenLine, TokenChars}}.
Erlang code.