# Pluto Markdown Not Working

**URL:** <https://discourse.julialang.org/t/pluto-markdown-not-working/53433>\
**Category:** General Usage\
**Tags:** pluto-markdown\
**Created:** [January 16, 2021, 1:44pm UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433 "2021-01-16T13:44:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Post date:** [January 16, 2021, 1:44pm UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433/1 "2021-01-16T13:44:48Z")

</div>

Hello,

I am trying to emulate the markdown in the Pluto NB shown [here](https://youtu.be/Gi4ZZVS2GLA?t=1170).

Here’s what it looks like in my notebook.

```julia
begin
	Cmin=10.0; Cmax=200.;
	Cslider = @bind SlideValC Slider(Cmin:0.1:Cmax, default=51);
	md" $(Cmin) J/m^2/K $(Cslider) $(Cmax)$"
end

```

But this results in the following, which does not look right and furthermore has no slider for me to manipulate.  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/1/4139a5b6649c2d1c881e00eb76dafb3815b92799.png)

How can I get it render to correctly? What am I doing wrong? I tried with triple quotes and it makes no difference.

I’m using the following packages  
`Plots, PlutoUI, OffsetArrays, LaTeXStrings, Markdown`  
Also, if it matters, I am using Firefox

---

<div class="post-metadata">

**Author:** ![tmthyln](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tmthyln/32/21607_2.png) [@tmthyln](https://discourse.julialang.org/u/tmthyln)\
**Post date:** [January 17, 2021, 1:42am UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433/2 "2021-01-17T01:42:32Z")

</div>

This isn’t actually a Pluto issue, it’s just a clash between Julia’s string interpolation using a single `$` and inserting LaTeX into markdown with paired $$. Usually, a bunch of characters without spaces between $$ will be interpreted as LaTeX, e.g. the `$C(max)$` at the end of your string (although the actual rules for what gets interpreted as what are not super straightforward).

Actually, the syntax highlighting here is also giving you a hint that the last $ at the end is not needed. If you remove it, it renders correctly:

```julia
begin
	Cmin=10.0; Cmax=200.;
	Cslider = @bind SlideValC Slider(Cmin:0.1:Cmax, default=51);
	md" $(Cmin) J/m^2/K $(Cslider) $(Cmax)"
end

```

![image](https://global.discourse-cdn.com/julialang/original/3X/e/f/ef2e56a5dc69e45f99a51129d33eb0d37254256c.png)

---

<div class="post-metadata">

**Author:** ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Post date:** [January 17, 2021, 3:15pm UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433/3 "2021-01-17T15:15:48Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Post date:** [January 17, 2021, 3:17pm UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433/4 "2021-01-17T15:17:06Z")

</div>

How would I get the units to display as LaTeX? Manually insert a superscript 2 somehow on the meters?

---

<div class="post-metadata">

**Author:** ![tmthyln](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tmthyln/32/21607_2.png) [@tmthyln](https://discourse.julialang.org/u/tmthyln)\
**Post date:** [January 17, 2021, 7:01pm UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433/5 "2021-01-17T19:01:42Z")

</div>

I’m not sure if it will work with LaTeX, but if it’s just the superscript 2, you could always just insert the superscript manually, via `\^2<tab>` shortcut.

---

<div class="post-metadata">

**Author:** ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Post date:** [January 17, 2021, 8:06pm UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433/6 "2021-01-17T20:06:35Z")

</div>

Hm - am I taking the wrong approach here? Should I even be trying to typeset the superscript with LaTeX? It was natural for me to try to express the units using LaTeX within a piece of markdown, since the expression superscripts. But should I be trying to use the build-in short cuts you mention? (didn’t even realize you use them for stuff besides inserting greek characters).

---

<div class="post-metadata">

**Author:** ![tmthyln](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tmthyln/32/21607_2.png) [@tmthyln](https://discourse.julialang.org/u/tmthyln)\
**Post date:** [January 18, 2021, 12:25am UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433/7 "2021-01-18T00:25:45Z")

</div>

No, LaTeX should be the preferred way, but it can be hard to get it working with the standard $ delimiters.

Actually, it turns out that Julia’s [flavor of Markdown](https://docs.julialang.org/en/v1/stdlib/Markdown/#%5CLaTeX) supports using double backticks to surround LaTeX, so your line from above is better written as

```julia
md" $Cmin ``J/m^2/K`` $(Cslider) $(Cmax)"

```

which renders as  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/3/43f99077849e304196f4db91725bd5bc644c39a3.png)

---

<div class="post-metadata">

**Author:** ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Post date:** [January 18, 2021, 2:23am UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433/8 "2021-01-18T02:23:59Z")

</div>

Thanks - that link is very helpful.

---

<div class="post-metadata">

**Author:** ![briochemc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/briochemc/32/4209_2.png) [@briochemc](https://discourse.julialang.org/u/briochemc)\
**Post date:** [January 18, 2021, 7:12am UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433/9 "2021-01-18T07:12:54Z")

</div>

I think units are generally typeset upstraight (unlike the slanted mathmode), as in the [SI Unit package](https://www.ctan.org/pkg/siunitx?lang=en) for LaTeX. So you might prefer to use plain markdown for them, like `J m⁻² K⁻¹` maybe?
