Awee

markdown

Markdown converts an HTML string to Markdown.

Markdown converts an HTML string to Markdown. Must be injected by the consumer; returns an error by default.

Input

string

Parameters

None

Returns

string

Examples

Convert a simple HTML snippet

Input

html_content = "<h1>Welcome</h1><p>Thanks for joining.</p>"

Template

{{ html_content | markdown }}

Output

# Welcome

Thanks for joining.

How is this guide?

On this page