Astral.Markdown.Images (Astral v0.1.7)

Copy Markdown View Source

Rewrites local Markdown image AST nodes into Astral image components.

The transformation is MDEx AST-backed: %MDEx.Image{} nodes become %MDEx.HeexInline{} nodes so the rest of the Markdown document can still be rendered by MDEx and compiled by HEEx.

Summary

Functions

Rewrite local image nodes in an MDEx document.

Functions

rewrite(document, opts \\ [])

@spec rewrite(
  term(),
  keyword()
) :: term()

Rewrite local image nodes in an MDEx document.