We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ListItem represents an item in the List environment. However, itemize and enumerate environments are parsed as ListItem nodes in Paragraph, now.
ListItem
List
Paragraph
Sample of itemize environment: itemize.tex
itemize.tex
\begin{itemize} \item item1 \item item2 \end{itemize}
Sample of enumerate environment: enumerate.tex
enumerate.tex
\begin{enumerate} \item item1 \item item2 \end{enumerate}
{ "type": "Document", "raw": "\\begin{itemize}\n \\item item1\n \\item item2\n\\end{itemize}", "children": [ { "raw": "item1\n \\item item2", "type": "Paragraph", "children": [ { "raw": "item1", "type": "ListItem", "children": [ { "raw": "item1", "type": "Str", "value": "item1" } ] }, { "raw": "\n \\item ", "type": "Html", "value": "\n \\item " }, { "raw": "item2", "type": "ListItem", "children": [ { "raw": "item2", "type": "Str", "value": "item2" } ] } ] } ] }
{ "type": "Document", "raw": "\\begin{enumerate}\n \\item item1\n \\item item2\n\\end{enumerate}", "children": [ { "raw": "item1\n \\item item2", "type": "Paragraph", "children": [ { "raw": "item1", "type": "ListItem", "children": [ { "raw": "item1", "type": "Str", "value": "item1" } ] }, { "raw": "\n \\item ", "type": "Html", "value": "\n \\item " }, { "raw": "item2", "type": "ListItem", "children": [ { "raw": "item2", "type": "Str", "value": "item2" } ] } ] } ] }
\item
LIstItem
{ "type": "Document", "raw": "\\begin{itemize}\n \\item item1\n \\item item2\n\\end{itemize}", "children": [ { "raw": "\\begin{itemize}\n \\item item1\n \\item item2\n\\end{itemize}", "type": "List", "children": [ { "raw": "\n ", "type": "Html", "value": "\n " }, { "raw": "\\item item1", "type": "ListItem", "children": [ { "raw": "item1", "type": "Paragraph", "children": [ { "raw": "item1", "type": "Str", "value": "item1" } ] } ] }, { "raw": "\n ", "type": "Html", "value": "\n " }, { "raw": "\\item item2", "type": "ListItem", "children": [ { "raw": "item2", "type": "Paragraph", "children": [ { "raw": "item2", "type": "Str", "value": "item2" } ] } ] }, { "raw": "\n", "type": "Html", "value": "\n" }, ] } ] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Abstract
ListItem
represents an item in theList
environment. However, itemize and enumerate environments are parsed asListItem
nodes inParagraph
, now.Sample source
Sample of itemize environment:
itemize.tex
Sample of enumerate environment:
enumerate.tex
Current behavior
npx tex2tast -r itemize.tex
npx tex2tast -r enumerate.tex
Expected behavior
ListItem
must be inList
.\item
is a part ofLIstItem
.ListItem
's children must be parsed normally.The text was updated successfully, but these errors were encountered: