Skip to content

Commit

Permalink
feat: classes rrt-new-tr-span, rrt-gap-tr and setting opts.up
Browse files Browse the repository at this point in the history
  • Loading branch information
revelt committed Oct 11, 2022
1 parent a6bbd7e commit 0ebe772
Show file tree
Hide file tree
Showing 14 changed files with 1,046 additions and 131 deletions.
4 changes: 2 additions & 2 deletions packages/rehype-responsive-tables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ let intended = `
<tbody>
<tr class="rrt-new-tr">
<td class="rrt-del-td"></td>
<td colspan="2">a</td>
<td colspan="2"><span class="rrt-new-tr-span">a</span></td>
</tr>
<tr>
<td class="rrt-del-td">a</td>
Expand All @@ -70,7 +70,7 @@ let intended = `
`;

assert.equal(
await rehype()
rehype()
.data("settings", { fragment: true })
.use(rehypeResponsiveTables)
.use(rehypeFormat)
Expand Down
4 changes: 2 additions & 2 deletions packages/rehype-responsive-tables/examples/_quickTake.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let intended = `
<tbody>
<tr class="rrt-new-tr">
<td class="rrt-del-td"></td>
<td colspan="2">a</td>
<td colspan="2"><span class="rrt-new-tr-span">a</span></td>
</tr>
<tr>
<td class="rrt-del-td">a</td>
Expand All @@ -35,7 +35,7 @@ let intended = `
`;

assert.equal(
await rehype()
rehype()
.data("settings", { fragment: true })
.use(rehypeResponsiveTables)
.use(rehypeFormat)
Expand Down
7 changes: 6 additions & 1 deletion packages/rehype-responsive-tables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,16 @@
},
"dependencies": {
"@types/hast": "^2.3.4",
"@types/lodash.iteratee": "^4.7.7",
"lodash.iteratee": "^4.7.0",
"unified": "^10.1.2",
"unist-util-visit": "^4.1.1"
},
"devDependencies": {
"rehype": "^12.0.1",
"rehype-format": "^4.0.1"
"rehype-format": "^4.0.1",
"rehype-parse": "^8.0.4",
"rehype-stringify": "^9.0.3",
"unified": "^10.1.2"
}
}
Loading

0 comments on commit 0ebe772

Please sign in to comment.