$ comrak -e phoenix-heex -t commonmark -t xml
Click <.button>here to continue
Click <.button>here</.button> to continue
Click
<.button>
here
</.button>
to continue
$ comrak -e phoenix-heex -t commonmark -t xml
User {user.name} has {user.age} items
User {user.name} has {user.age} items
User
{user.name}
has
{user.age}
items
$ comrak -e phoenix-heex -t commonmark -t xml
Value: {user.name} or <%= @user.name %>
Value: {user.name} or <%= @user.name %>
Value:
{user.name}
or
<%= @user.name %>
$ comrak -e phoenix-heex -t commonmark -t xml
I am some text! <%# Look a comment! %> I am more some text!
I am some text!
<%# Look a comment! %>
I am more some text!
I am some text!
<%# Look a comment! %>
I am more some text!
$ comrak -e phoenix-heex -t commonmark -t xml
Contact Form
<.form for={@form} phx-change="change_name" > <.input field={@form[:email]} />Footer
Socials
Contact Form
<.form
for={@form}
phx-change="change_name"
>
<.input field={@form[:email]} />
</.form>
Footer
Socials
Contact Form
<.form
for={@form}
phx-change="change_name"
>
<.input field={@form[:email]} />
</.form>
Footer
Socials
$ comrak -e phoenix-heex -t commonmark -t xml
Content here
Content here
Content here
<MyComponent>
Content here
</MyComponent>
$ comrak -e phoenix-heex -t commonmark -t xml
<.modal>
<:header>
This is the top of the modal.
This is the content of the modal.
<.modal>
This is the top of the modal.
This is the content of the modal.
</.modal>
<.modal>
<:header>
This is the top of the modal.
</:header>
This is the content of the modal.
</.modal>
$ comrak -e phoenix-heex -t commonmark -t xml
<.table rows={@users}>
<:col :let={user} label="Name">
{user.name}
<:col :let={user} label="Email">
{user.email}
<.table rows={@users}>
{user.name}
{user.email}
</.table>
<.table rows={@users}>
<:col :let={user} label="Name">
{user.name}
</:col>
<:col :let={user} label="Email">
{user.email}
</:col>
</.table>
$ comrak -e phoenix-heex -t commonmark -t xml
<%= if true do %>
<%= @x %>
<% end %>
<%= if true do %>
<%= @x %>
<% end %>
<%= @x %>
<%= if true do %>
<%= @x %>
<% end %>
$ comrak -e phoenix-heex --unsafe -t commonmark -t xml
<%= item %>
<%= item %>
<div :for={item <- @items}>
<%= item %>
</div>
$ comrak -e phoenix-heex -e table -t commonmark -t xml
<.wrapper>
| a | b |
|---|---|
| c | d |
<.wrapper>
| a | b |
|---|---|
| c | d |
</.wrapper>
<.wrapper>
| a | b |
|---|---|
| c | d |
</.wrapper>
$ comrak -e phoenix-heex -t commonmark -t xml
-
- <.button> text
<.button>
text
</.button>
-
<.button>
text
</.button>
$ comrak -e phoenix-heex -t commonmark -t xml
Header: <:title>My Title</:title>
Header: <:title>My Title</:title>
Header: <:title>My Title</:title>