Well, after saying that pandoc doesn't support color, I saw this. You're right, this seems to be something the LaTeX reader does.
% pandoc -f latex -t native
\documentclass{article}
\begin{document}
\textcolor{blue}{blue}
\end{document}
[ Para
[ Span
( "" , [] , [ ( "style" , "color: blue" ) ] ) [ Str "blue" ]
]
]
Looks like this goes back to commit d9439808f2fe226aad027c8c9d0a38217a1e8c34 in 2017.
I don't think I ought to have merged this change -- this is too HTML-centric for the LaTeX reader to be producing.
> On Nov 21, 2023, at 6:37 AM, 'William Lupton' via pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote:
>
> It seems that the LaTeX reader encodes the color info in a style attribute? (try.pandoc)
>
> \documentclass{article}
> \begin{document}
> \textcolor{blue}{blue}
> \end{document}
>
> -->
>
> <p><span style="color: blue">blue</span></p>
--
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/2FA49E21-A3FD-449E-9292-F18ECEAC4291%40gmail.com.