AmerMathSoc / texml

A repository for texml development
9 stars 2 forks source link

\item {\bf } creating wrong&invalid output #224

Closed pkra closed 1 week ago

pkra commented 1 week ago

The following TeX

\begin{enumerate}
    \item {\bf Prove:} Let...
\end{enumerate}    

generates

    <def-list content-type="enumerate">
      <bold>
        <def-item id="ltxid3"><term>(1)</term> <def><p>Prove: Let...</p></def></def-item>
      </bold>
    </def-list>

Note how the bold tag wraps around the entire def-item.

This looks like a recent regression (since this example is from a publication where the old XML has the bold in the correct position).

davidmjones commented 1 week ago

@pkra This should be fixed now. Can you confirm?

pkra commented 1 week ago

@davidmjones I can confirm.

I'm guessing this was resolved by 933e49ac12ec73c9130b5a2fc0f66030690b07f3