LaTeX and Markdown in the same Weave Chunk

Is it possible to mix LaTeX and Markdown in the same chunk? I tried something like this but when I weave it it looks as if I printed this in the REPL. I know if you just put everything in its own chunk that works fine but I’d love to cut down on the typing of ```julia if I can.

```julia echo=false
using Weave, LaTeXStrings, Markdown
# This weaves just fine
L"\dfrac{1}{2}"
```
```julia echo=false
using Weave, LaTeXStrings, Markdown
# This also works
md"**Some Markdown text**"
```
```julia echo=false
using Weave, LaTeXStrings, Markdown
# This is where I don't know what to do
L"\dfrac{1}{2}"
md"**Some markdown text**"
```

Any help would be much appreciated.

1 Like