Vibe.Web.Components.Code (vibe v0.2.2)

Copy Markdown View Source

Markdown, source, diff, and text rendering helpers for Vibe Web components.

Summary

Functions

diff_html(text)

@spec diff_html(String.t()) :: IO.chardata()

display_text(value)

@spec display_text(term()) :: String.t() | nil

html_escape(value)

@spec html_escape(term()) :: String.t()

markdown_html(text)

@spec markdown_html(String.t() | nil) :: String.t()

source_html(text, language)

@spec source_html(String.t(), String.t()) :: IO.chardata()

strip_ansi(text)

@spec strip_ansi(String.t()) :: String.t()

summary_html(code)

@spec summary_html(String.t()) :: IO.chardata()