TabItem breaks if content ends with a list #2699
Replies: 2 comments
|
It's the indentation of the closing tag, not the list itself. Your error says the list item starts at column 1 ( Either put the closing tag at column 1: <TabItem value="commits-query" label="_commits query">
- `cid` – Unique identifier of a commit.
- `depth` – Position within the chain of commits this one commit is located at.
</TabItem>or indent the list more than the closing tag, like in your snippet: <TabItem value="commits-query" label="_commits query">
- `cid` – Unique identifier of a commit.
- `depth` – Position within the chain of commits this one commit is located at.
</TabItem>I checked both with |
|
Ah, good catch! Thanks for the fix. I don't know if this classifies as a bug, but i'm happy i have a solution anyway :) |

It's the indentation of the closing tag, not the list itself. Your error says the list item starts at column 1 (
listItem (47:1)), so in the actual file the list isn't indented. For a- itemthe content starts 2 columns in, so</TabItem>(2 spaces) counts as a continuation of the last list item, and MDX can't close the JSX tag inside it. That's also why adding just a blank line doesn't help, but adding another element after the list does.Either put the closing tag at column 1:
or indent the l…