Clarity.Components.MarkdownComponent (Clarity v0.4.0)

View Source

Phoenix component for rendering markdown content with vertex:// link transformation.

This component parses markdown content and transforms vertex:// links into proper application routes, enabling navigation within the Clarity interface.

Summary

Functions

markdown(assigns)

Attributes

  • content (:any) (required) - The markdown content to render.
  • prefix (:string) (required) - URL prefix for link generation.
  • lens (Clarity.Perspective.Lens) (required) - Current lens for link generation.
  • class (:string) - CSS classes to apply to the markdown container. Defaults to "".
  • Global attributes are accepted. the arbitrary HTML attributes to add to the markdown container.