Maybe (in the spirit of https://github.com/jgm/pandoc/issues/8988#issuecomment-1673442117, which was about writers, not readers) such info could be added as something like latex-style="textcolor: blue" (where "latex" is here derived from the reader name)?

On Wed, 22 Nov 2023 at 04:36, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
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.

--
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/CAEe_xxjk-39RuHkEvhZ34KFuZv1iq14RcEP8n9p8F8vsoYY9Ag%40mail.gmail.com.