Packages

A simple Elixir Elasticsearch HTTP client.

Current section

Files

Jump to
elixir_elastic deps ex_doc lib ex_doc markdown cmark.ex
Raw

deps/ex_doc/lib/ex_doc/markdown/cmark.ex

defmodule ExDoc.Markdown.Cmark do
@moduledoc """
ExDoc extension for the Cmark Markdown parser
"""
@doc """
Check if the Cmark Markdown parser module is available. Otherwise, try to
load the module
"""
def available? do
Code.ensure_loaded?(Cmark)
end
@doc """
Generate HTML output. Cmark takes no options.
"""
def to_html(text, _opts) do
Cmark.to_html(text)
end
end