# Markdown inconsistency: PlutoUI, latexifications

**URL:** <https://discourse.julialang.org/t/markdown-inconsistency-plutoui-latexifications/78076>\
**Category:** General Usage\
**Tags:** pluto-and-latex, pluto-markdown\
**Created:** [March 18, 2022, 11:02am UTC](https://discourse.julialang.org/t/markdown-inconsistency-plutoui-latexifications/78076 "2022-03-18T11:02:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [March 18, 2022, 11:02am UTC](https://discourse.julialang.org/t/markdown-inconsistency-plutoui-latexifications/78076/1 "2022-03-18T11:02:05Z")

</div>

I’ve previously solved the issue of interpolating latexified expressions in Pluto by using `Markdown.parse()` rather than `md""`. But rather unsatisfyingly, the opposite compatibilty constraints apply to `PlutoUI` elements:

```julia
using Latexify

```

```julia
md"""
$(Slider(1:5))
$(@latexify x^2)
"""

```

Here the slider displays correctly, but the latexified string displays as `L"$x^2$"`.

```julia
Markdown.parse("""
$(Slider(1:5))
$(@latexify x^2)
""")

```

Here the latexified string is displayed correctly, but the slider is shown as `PlutoUI.BuiltinsNotebook.Slider{Int64}(1:5, 1, false)`.

Has anyone found a workaround that works for both at the same time (preferably without having to concatenate different strings)?

```julia
x_str = @latexify x^2
md"""
$x_str
"""

```

works, so I’m not sure what is going on.

---

<div class="post-metadata">

**Author:** ![josuagrw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josuagrw/32/1015_2.png) [@josuagrw](https://discourse.julialang.org/u/josuagrw)\
**Post date:** [March 18, 2022, 11:05am UTC](https://discourse.julialang.org/t/markdown-inconsistency-plutoui-latexifications/78076/2 "2022-03-18T11:05:02Z")

</div>

The starting point for your investigation could be the definition of the `md"…"` string definition:

[https://github.com/JuliaLang/julia/blob/a761cc0b82f88838eb31b29e7387cea35a0cab30/stdlib/Markdown/src/Markdown.jl#L43](https://github.com/JuliaLang/julia/blob/a761cc0b82f88838eb31b29e7387cea35a0cab30/stdlib/Markdown/src/Markdown.jl#L43)
