Easily convert excel and word tables to AsciiDoc!
Simply paste a copied excel/word table. Note that it should not include special formatting like colors.
For horizontal lines and to treat the first row as header, paste these attributes above table:
[frame=none, grid=rows, options="header"]
To additionally treat the last row as footer, paste instead:
[frame=none, grid=rows, options="header,footer"]
To set the relative column widths, add the cols="..."
attribute:
[cols="1,3,1"] // set the columns to be 1:3:1 wide, i.e. 20%, 60%, 20%
Link to GitHub repository: marcdus/copy-excel-to-asciidoc