Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/earmark_parser/options.ex: added Earmark.Parser.Options.t() #484

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions lib/earmark_parser/options.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
defmodule Earmark.Parser.Options do

@moduledoc """
Determines how markdown is parsed into an abstract syntax tree (AST) and subsequently rendered to HTML.
"""

@type t :: %__MODULE__{
renderer: module(),
all: boolean(),
gfm: boolean(),
gfm_tables: boolean(),
breaks: boolean(),
footnotes: boolean(),
footnote_offset: non_neg_integer(),
wikilinks: boolean(),
parse_inline: boolean(),
annotations: String.t() | nil,
code_class_prefix: String.t() | nil,
file: String.t() | nil,
line: non_neg_integer(),
messages: MapSet.t(),
pure_links: boolean(),
sub_sup: boolean(),
pedantic: boolean(),
smartypants: boolean(),
timeout: integer() | nil
}
# What we use to render
defstruct renderer: Earmark.Parser.HtmlRenderer,
# Inline style options
Expand Down
Loading