Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

Commit

Permalink
smaller example headings
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestalmage committed Dec 19, 2014
1 parent a4df34a commit 7ee8b4c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions example.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#### use colSpan to span columns - (colSpan above normal cell)
###### use colSpan to span columns - (colSpan above normal cell)
┌───────────────┐
│ greetings │
├───────────────┤
Expand All @@ -18,7 +18,7 @@
```


#### use colSpan to span columns - (colSpan below normal cell)
###### use colSpan to span columns - (colSpan below normal cell)
┌───────┬───────┐
│ hello │ howdy │
├───────┴───────┤
Expand All @@ -38,7 +38,7 @@
```


#### use rowSpan to span rows - (rowSpan on the left side)
###### use rowSpan to span rows - (rowSpan on the left side)
┌───────────┬───────────┬───────┐
│ greetings │ │ hello │
│ │ greetings ├───────┤
Expand All @@ -55,7 +55,7 @@
```


#### use rowSpan to span rows - (rowSpan on the right side)
###### use rowSpan to span rows - (rowSpan on the right side)
┌───────┬───────────┬───────────┐
│ hello │ greetings │ │
├───────┤ │ │
Expand All @@ -72,7 +72,7 @@
```


#### mix rowSpan and colSpan together for complex table layouts
###### mix rowSpan and colSpan together for complex table layouts
┌───────┬─────┬────┐
│ hello │ sup │ hi │
├───────┤ │ │
Expand All @@ -92,7 +92,7 @@
```


#### multi-line content will flow across rows in rowSpan cells
###### multi-line content will flow across rows in rowSpan cells
┌───────┬───────────┬───────────┐
│ hello │ greetings │ greetings │
├───────┤ friends │ friends │
Expand All @@ -109,7 +109,7 @@
```


#### multi-line content will flow across rows in rowSpan cells - (complex layout)
###### multi-line content will flow across rows in rowSpan cells - (complex layout)
┌───────┬─────┬────┐
│ hello │ sup │ hi │
├───────┤ man │ yo │
Expand All @@ -129,7 +129,7 @@
```


#### rowSpan cells can have a staggered layout
###### rowSpan cells can have a staggered layout
┌───┬───┐
│ a │ b │
│ ├───┤
Expand All @@ -149,7 +149,7 @@
```


#### the layout manager automatically create empty cells to fill in the table
###### the layout manager automatically create empty cells to fill in the table
┌───┬───┬──┐
│ a │ b │ │
│ ├───┤ │
Expand All @@ -172,7 +172,7 @@
```


#### use table `rowHeights` option to fix row height. The truncation symbol will be shown on the last line.
###### use table `rowHeights` option to fix row height. The truncation symbol will be shown on the last line.
┌───────┐
│ hello │
│ hi… │
Expand All @@ -185,7 +185,7 @@
```


#### if `colWidths` is not specified, the layout manager will automatically widen rows to fit the content
###### if `colWidths` is not specified, the layout manager will automatically widen rows to fit the content
┌─────────────┐
│ hello there │
├──────┬──────┤
Expand All @@ -202,7 +202,7 @@
```


#### you can specify a column width for only the first row, other rows will be automatically widened to fit content
###### you can specify a column width for only the first row, other rows will be automatically widened to fit content
┌─────────────┐
│ hello there │
├────┬────────┤
Expand All @@ -219,7 +219,7 @@
```


#### a column with a null column width will be automatically widened to fit content
###### a column with a null column width will be automatically widened to fit content
┌─────────────┐
│ hello there │
├────────┬────┤
Expand All @@ -236,7 +236,7 @@
```


#### feel free to use colors in your content strings, column widths will be calculated correctly
###### feel free to use colors in your content strings, column widths will be calculated correctly
![table image](https://rawgit.com/jamestalmage/cli-table2/master/examples/screenshots/truncation-with-colors.png)
```javascript
var table = new Table({colWidths:[5],style:{head:[],border:[]}});
Expand Down
2 changes: 1 addition & 1 deletion lib/print-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function mdExample(fn,file){

runExample(fn,
function(name){
buffer.push('#### ' + name);
buffer.push('###### ' + name);
},
function(table){
table = stripColors(table);
Expand Down

0 comments on commit 7ee8b4c

Please sign in to comment.