(zettel (meta (back "00001007010000 00001007030000 00001007800000 00001007990000 00001012920513") (backward "00001007010000 00001007030000 00001007800000 00001007990000 00001012920513") (box-number "1") (created "20210126175322") (forward "00001004100000 00001007040000") (modified "20241212153641") (published "20241212153641") (role "manual") (syntax "zmk") (tags "#manual #zettelmarkup #zettelstore") (title "Zettelmarkup: Tables")) (rights 4) (encoding "") (content "Tables are used to show some data in a two-dimensional fashion.\nIn zettelmarkup, tables are not specified explicitly, but by entering __table rows__.\nTherefore, a table can be seen as a sequence of table rows.\nA table row is nothing but a sequence of __table cells__.\nThe length of a table is the number of table rows, the width of a table is the maximum length of its rows.\n\nThe first cell of a row must begin with the vertical bar character (\"\"''|''\"\", U+007C) at the first position of a line.\nThe other cells of a row begin with the same vertical bar character at later positions in that line.\nA cell is delimited by the vertical bar character of the next cell or by the end of the current line.\nA vertical bar character as the last character of a line will not result in a table cell.\nIt will be ignored.\nInside a cell, you can specify any [[inline elements|00001007040000]].\n\nFor example:\n```zmk\n| a1 | a2 | a3|\n| b1 | b2 | b3\n| c1 | c2\n```\nwill be rendered in HTML as:\n:::example\n| a1 | a2 | a3|\n| b1 | b2 | b3\n| c1 | c2\n:::\n\n=== Header row\nIf any cell in the first row of a table contains an equal sing character (\"\"''=''\"\", U+003D) as the very first character, then this first row will be interpreted as a __table header__ row.\n\nFor example:\n```zmk\n| a1 | a2 |= a3|\n| b1 | b2 | b3\n| c1 | c2\n```\nwill be rendered in HTML as:\n:::example\n| a1 | a2 |= a3|\n| b1 | b2 | b3\n| c1 | c2\n:::\n\n=== Column alignment\nInside a header row, you can specify the alignment of each header cell by a given character as the last character of a cell.\nThe alignment of a header cell determines the alignment of every cell in the same column.\nThe following characters specify the alignment:\n\n* the colon character (\"\"'':''\"\", U+003A) forces a centered alignment,\n* the less-than sign character (\"\"''<''\"\", U+0060) specifies an alignment to the left,\n* the greater-than sign character (\"\"''>''\"\", U+0062) will produce right aligned cells.\n\nIf no alignment character is given, a default alignment is used.\n\nFor example:\n```zmk\n|=Left<|Right>|Center:|Default\n|123456|123456|123456|123456|\n|123|123|123|123\n```\nwill be rendered in HTML as:\n:::example\n|=Left<|Right>|Center:|Default\n|123456|123456|123456|123456|\n|123|123|123|123\n:::\n\n=== Cell alignment\nTo specify the alignment of an individual cell, you can enter these characters for alignment as the first character of that cell.\n\nFor example:\n```zmk\n|=Left<|Right>|Center:|Default\n|>R|:C||Center:|Default\n|>R|:C|