HtmlToMarkdown.CodeBlockStyle (html_to_markdown v3.8.3)

Copy Markdown

Code block fence style in Markdown output.

Determines how code blocks (<pre><code>) are rendered in Markdown.

Summary

Types

t()

Code block fence style in Markdown output.

Functions

Fenced code blocks with triple backticks. Default (GFM). Supports language hints.

Indented code blocks (4 spaces). CommonMark standard.

Fenced code blocks with tildes (~~~). Supports language hints.

Types

t()

@type t() :: :indented | :backticks | :tildes

Code block fence style in Markdown output.

Functions

backticks()

@spec backticks() :: t()

Fenced code blocks with triple backticks. Default (GFM). Supports language hints.

indented()

@spec indented() :: t()

Indented code blocks (4 spaces). CommonMark standard.

tildes()

@spec tildes() :: t()

Fenced code blocks with tildes (~~~). Supports language hints.