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
Unable to apply attributes to the last column of tables, if there is an attribute in the last <td> it will apply it to the parent <tr>.
<td>
<tr>
Markdown-it versions:
markdown-it@13.0.1 markdown-it-attrs@4.1.6
Example input:
| title | title | | :----: | :----: | | text | text {.text-primary} | | text {.text-primary} | text |
Current output:
<table> <thead> <tr> <th style="text-align:center">title</th> <th style="text-align:center">title</th> </tr> </thead> <tbody> <tr class="text-primary"> <td style="text-align:center">text</td> <td style="text-align:center">text</td> </tr> <tr> <td style="text-align:center" class="text-primary">text</td> <td style="text-align:center">text</td> </tr> </tbody> </table>
Expected output:
<table> <thead> <tr> <th style="text-align:center">title</th> <th style="text-align:center">title</th> </tr> </thead> <tbody> <tr> <td style="text-align:center">text</td> <td style="text-align:center" class="text-primary">text</td> </tr> <tr> <td style="text-align:center" class="text-primary">text</td> <td style="text-align:center">text</td> </tr> </tbody> </table>
Diff:
<table> <thead> <tr> <th style="text-align:center">title</th> <th style="text-align:center">title</th> </tr> </thead> <tbody> - <tr class="text-primary"> + <tr> <td style="text-align:center">text</td> - <td style="text-align:center">text</td> + <td style="text-align:center" class="text-primary">text</td> </tr> <tr> <td style="text-align:center" class="text-primary">text</td> <td style="text-align:center">text</td> </tr> </tbody> </table>
The text was updated successfully, but these errors were encountered:
markdown-it-container
markdown-it-attrs
c4c4170
Fixed in v4.2.0, thanks to @TheNorthMemory
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Unable to apply attributes to the last column of tables, if there is an attribute in the last
<td>
it will apply it to the parent<tr>
.Markdown-it versions:
Example input:
Current output:
Expected output:
Diff:
The text was updated successfully, but these errors were encountered: