Hello,

The inline stuff is fine with markup of a p when dealing with images, but not with text, which comes through in the md->pdf but without center alignment. I understand it should be ignored, but it is not. Secondly, putting classes on divs is not working on some epub readers for centering (only on the p).

I did a workaround of putting my text into an image, and that works out (this is for the dinkus/asterism), though the problem still persists of text being markedup in div or p not being ignored by latex when md->pdf.

working code:

~~~~
<p class="center"><img src="dinkus.png" /></p>
`\begin{center} ∗ ∗ ∗ \end{center}`{=latex}
~~~~

Sincerely,
Jeff Mcneill

On Tuesday, October 29, 2019 at 12:03:07 AM UTC+7, BP wrote:
I wrote:

> If you want to insert the LaTeX code directly into the Markdown you should do this:
>
> ````````markdown
> ```{=latex}
> \begin{center}
> ```
>
> \includegraphics{politics/analects/images/figure-analects-02.jpg}
>
> ```{=latex}
> \end{center}
> ```
> ````````

That should of course have been:

If you want to insert the LaTeX code directly into the Markdown you
should do this:

````````markdown
```{=latex}
\begin{center}
```

::: {.center}
![](politics/analects/images/figure-analects-02.jpg)
:::

```{=latex}
\end{center}
```
````````

Sorry for the confusion!

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8cfdffdd-9319-4d8d-9cf1-c76636a3d3c2%40googlegroups.com.