You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\begin{table}[]
\begin{tabular}{cc}
This is & a table
\end{tabular}
\end{table}
This LaTeX code is converted to an AST like below.
Since textlint-rule-ja-no-mixed-period treats the last Str node of a Paragraph node as the end of a sentence, converting a tabular environment to these nodes causes an unexpected error.
Textlint AST provides Table node. Why not use it instead of ListItem?
I note you that the third party parser latex-utensils has no node for table unfortunately.
Problem
textlint-rule-ja-no-mixed-period points out "no period" errors in
tabular
environments.Cause
This LaTeX code is converted to an AST like below.
Since textlint-rule-ja-no-mixed-period treats the last
Str
node of aParagraph
node as the end of a sentence, converting a tabular environment to these nodes causes an unexpected error.Solution
textlint-plugin-review seems to treat each item in a table as a
ListItem
node.We can also wrap
Str
nodes intoListItem
nodes.orangain/textlint-plugin-review#6
The text was updated successfully, but these errors were encountered: