Skip to content

marginfigure can't handle certain Markdown and LaTeX #77

Open
@lrdegeest

Description

@lrdegeest

according to https://rstudio.github.io/tufte/, marginfigure can handle any Markdown syntax:

If you need to write anything in Markdown syntax, please use the marginfigure block described previously.

But if you try to place a blockquote in the margin:

```{marginfigure}
> "If it weren't for my lawyer, I'd still be in prison. It went a lot faster with two people digging."
>
> `r tufte::quote_footer('--- Joe Martin')`

nothing appears. I guess R interprets the "" as comments.

I also found issues with LaTeX equations, like:

```{marginfigure}
$$
\begin{aligned}
H_0 &: \beta = 0 \\
H_A &: \beta \neq 0 \\
\end{aligned}
$$

where the alignment on "&" gets messed up.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions