MD -> Heex == escaping issues? #176
Replies: 7 comments 3 replies
-
|
Spent my last tokens in Claude… and I ended up making a custom converter wrapping defmodule Travers.MDExConverter do
def convert(filepath, front_matter, body, assigns) do
Tableau.MDExConverter.convert(filepath, front_matter, body, assigns)
|> Phoenix.HTML.raw()
end
endThis wraps the |
Beta Was this translation helpful? Give feedback.
-
|
Do your layouts call this function? |
Beta Was this translation helpful? Give feedback.
-
|
Yes, it does. |
Beta Was this translation helpful? Give feedback.
-
|
What version of mdex are you using? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for glancing at this @mhanberg! |
Beta Was this translation helpful? Give feedback.
-
|
Yeah… my converter causes problems when I branched out into the |
Beta Was this translation helpful? Give feedback.
-
|
So I downloaded the https://github.com/mhanberg/tableau_demo_heex/blob/main/lib/tableau_demo_heex.ex, added a PageExtension, added a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey gang! I've got a bunch of .md files, which I think the MDex converter picks up by default in Tableau. I recently converted my EEx layout for HEEx because want the component system. All the HEEx pages render correctly inside the HEEx layout, but any .md file show up as escaped HTML.
I was trying to follow the https://github.com/mhanberg/tableau_demo_heex/blob/main/lib/tableau_demo_heex.ex example.
Instead of doing
render(@inner_content)I could do something like:But it feels like that is a bit of an antipattern reflecting that I don't understand the pipeline fully.
Beta Was this translation helpful? Give feedback.
All reactions