On 26. 10. 19 10:06, Jeff Mcneill wrote:
Aha, I've found a fix, referenced at: https://stackoverflow.com/questions/48083724/pandoc-markdown-ignore-text-in-pdf-but-include-in-html-updated

Here is what I put, and the epub ignores the latex content and the latex ignores the epub (html) content. Magical indeed.

`<p class="dinkus">&midast; &midast; &midast;</p>`{=html}
\begin{center} ∗ ∗ ∗ \end{center}

I wasn't actually aware of this syntax. Magical indeed.



Thanks for your help. Your suggestions are very useful.
--Jeff Mcneill


On Saturday, October 26, 2019 at 2:24:17 PM UTC+7, Václav Haisman wrote:
On 26. 10. 19 9:09, Jeff Mcneill wrote:

I suggest you add the following to your LaTeX preamble:

\usepackage{newunicodechar}
\newunicodechar{∗}{\textasteriskcentered}

and then use the raw character in your document

\begin{center}
∗ ∗ ∗
\end{center}


-- 
VH

This indeed fixes my issue with latex in terms of producing the correct dinkus display (&midast;) when md->pdf, however this still is discarded by pandoc when producing an md->epub. The lines are simply removed (there is no dinkus and no additional space added between the separated sections). --

You will have to write a filter that will implement the dingus differently for each output format. Pandoc is not magical, it cannot translate everything.

One more comment about the LaTeX dingus: I have found one more sophisticated implementation, see https://tex.stackexchange.com/a/101240/28495.



-- 
VH
--
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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e119c11f-a1a0-4005-aec4-beaf76381aa1%40googlegroups.com.


-- 
VH

--
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/45210a24-a95d-67be-4418-3377462d78c4%40gmail.com.