Skip to content

Commit 6277694

Browse files
committed
Change toConsole to output table with comments
1 parent dd85409 commit 6277694

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const regex = /<!-- props-table-start -->[\s\S]*<!-- props-table-end -->/m;
2121
const propsTable = buildPropsTable(filename);
2222

2323
if (toConsole) {
24-
console.log(propsTable);
24+
console.log('<!-- props-table-start -->\n' + propsTable + '<!-- props-table-end -->');
2525
process.exit(1);
2626
}
2727

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rianbotha/react-props-md-table",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"description": "A markdown table generator for React component props.",
55
"main": "index.js",
66
"bin": {

0 commit comments

Comments
 (0)