rst and pypandoc
alb
al.basili at gmail.com
Mon Mar 2 17:40:41 EST 2015
Hi Dave,
Dave Angel <davea at davea.name> wrote:
[]
>>> or use a raw string:
>>>
>>> i = r'\\ref{fig:abc}'
>
> Actually that'd be:
> i = r'\ref{fig:abc}'
Could you explain why I then see the following difference:
In [56]: inp = r'\\ref{fig:abc}'
In [57]: print pypandoc.convert(inp, 'latex', format='rst')
\textbackslash{}ref\{fig:abc\}
In [58]: inp = r'\ref{fig:abc}'
In [59]: print pypandoc.convert(inp, 'latex', format='rst')
ref\{fig:abc\}
The two results are clearly *not* the same, even though the two inp
/claim/ to be the same...
Al
More information about the Python-list
mailing list